+ 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?

22nd Dec 2018, 4:40 PM
Dhruv Kumar
Dhruv Kumar - avatar
1 Resposta
+ 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.
22nd Dec 2018, 4:58 PM
MsJ
MsJ - avatar