I use the general rule that if you know exactly how many times a loop should iterate use a for loop. When the number of iterations are unknown then use a while loop.
Print 10 numbers - for loop...
Type: Posts; User: Junky
I use the general rule that if you know exactly how many times a loop should iterate use a for loop. When the number of iterations are unknown then use a while loop.
Print 10 numbers - for loop...
What do you want me to explain?
Another example of being spoonfed code and trying to use it without understanding it.