do while lopp code example
Example 1: do whie loop
do{
----
} while(condition);
Example 2: whiel loop in C
while (testExpression)
{
// statements inside the body of the loop
}
do{
----
} while(condition);
while (testExpression)
{
// statements inside the body of the loop
}