0
"For" and "While"
Is it mean that "for" has 3 condition and "while" has 1 condition ?
4 Answers
+ 5
For loop, gets a variable as a counter, a condition to check the counter, and the third one is the increment or decrement statement.
While loop, gets the variable outside the loop, checks the condition and deals with the increment or decrement at the end of the loop.
+ 3
No it doesn't.
0
so what?
0
Thanks