Computer Science, asked by Abhishek56789, 1 year ago

explain the use of do loop statement with the help of example​

Answers

Answered by gurukulamdivya
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 Anonymous
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