Search This Blog

If you like any posts in this blog then click this icon which is present under the post

Friday, 29 July 2011

Difference between while and do...while statements


                while is an entry control statement. so if the test condition is false the loop will not be executed.
               
                do ….while is an exit control statement. So irrespective of the condition value, the body of the loop will be executed atleast once. 

No comments:

Post a Comment

Followers