explain the use of do loop statement with the help of example
Answers
Answered by
0
Answer:
Do While Loop
It is another loop like ‘for’ loop in C. But do-while loop allows execution of statements inside block of loop for one time for sure even if condition in loop fails.
Basic syntax to use ‘do-while’ loop is:
variable initialization;
do {
statement 1;
statement 2;
..
..
iteration of variable;
} while (condition to control loop)
Answered by
3
Answer:
Explanation:Looping statement are the statements execute one or more statement repeatedly several number of times. In C programming language there are three types of loops; while, for and do-while.
Similar questions