'do-while' Loop:-
do while is an iterative in c language. THis loop executes one or more statements while the given condition is true. In this loop,the condition comes after the body of the loop.it is an important loop in a situation when the loop body must be executed at least once.
Syntax:-
The syntax of while loop is as follows
do
{
Statement 1;
Statement 2;
:
:
Statement N;
}
While(condition);
Post a Comment