+ 3

What is the difference between while loop and do while loop

while loop is know as entry control loop or do while loop is called exit control loop. Because the while loop check the condition first then executed own body if condition is satisfied so that's why while loop is called entry control loop , But in the case of do while loop the loop body is execute once a time either give condition is true or not so that's why do while loop is called exit control loop

23rd Jan 2018, 6:36 AM
Deepak kumar
Deepak kumar - avatar
2 odpowiedzi
+ 9
You just answered your own question?
23rd Jan 2018, 6:57 AM
Hatsy Rei
Hatsy Rei - avatar
0
hence , you got self learner badge 👍👍
23rd Jan 2018, 2:33 PM
Hack Erer
Hack Erer - avatar