Write down the syntax of:
(a) do - while
(b) while loop
24 Likes
do { //loop-body } while (condition);
while (condition) { //loop-body }
Answered By
12 Likes
What is the purpose of using break statement in a program?
Define the following with their constructs:
(a) Entry controlled loop
(b) Exit controlled loop
What is the purpose of using continue statement in a program?
What is for loop? What are the parameters used in for loop?