Ad Code

Responsive Advertisement

Difference between while and do while loop.

Difference between while and do while loop.
while loop
1) it is known as entry control loop.
 2)it Check condition first and if condition is true it execute the body of loop.
 3)it not ends with semicolon(;)

Do while loop : 
1)it is a exit control loop.
 2)Body of loop execute once(whether conditions is true or false) and then after conditions is Checked.
 3) it ends with semicol(;).


❮ Previous                                                      Next ❯

Post a Comment

0 Comments