0

"For" and "While"

Is it mean that "for" has 3 condition and "while" has 1 condition ?

2nd Feb 2017, 11:33 PM
AmierAiman 47
AmierAiman 47 - avatar
4 Respostas
+ 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.
2nd Feb 2017, 11:39 PM
Alireza M
Alireza M - avatar
+ 3
No it doesn't.
2nd Feb 2017, 11:36 PM
Alireza M
Alireza M - avatar
0
so what?
2nd Feb 2017, 11:36 PM
AmierAiman 47
AmierAiman 47 - avatar
0
Thanks
2nd Feb 2017, 11:40 PM
AmierAiman 47
AmierAiman 47 - avatar