+ 1
What is the difference between While loop and for loop and do while loop?
What is the difference between While loop and for loop and do while loop?
1 Odpowiedź
+ 1
For loop:- condition limit is known to us
While loop:- condition limit unknown entry control loop
Do while:- exit control loop
do...while loop is very similar towhile loop. Only difference between these two loops is that, in while loops, test expression is checked at first but, in do...while loop code is executed at first then the condition is checked. So, the code are executed at least once indo...while loops.