Algorithm in the opening
The book of
New details is not very good, please answer
CodePudding user response:
The second diagram, loop inside just print RNDL (r), but the outside of the loop body defines the double r=5.0; R value is fixed, RNDL (r) function return value is fixed, of course, is to print 10 times RNDL value (5.0),CodePudding user response:
Is there any solution to theCodePudding user response:
What's the solution?CodePudding user response:
Solution is to encapsulate cycle to RNDL function,Is put the first for loop parts in the figure the whole RNDL function, it is ok to just call the main function