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