How many times is the loop body executed in a do loop, even if the test-condition is false ?
11 Likes
do-while loop is an exit controlled loop. Thus, its body is executed atleast once even if the test-condition is false.
Answered By
5 Likes
What is meant by an exit-controlled loop ? Which Java loops are exit-controlled ?
What is the difference between a while and do-while loop ?
What is nested loop ?
Write a program in Java to display the following pattern:
1 21 321 4321 54321