Day 4 Loops: do-while loop in C Programming language
# do while Statement (Loop)
do - while is also iteration statement. It is similar to while but has many different properties. It is an exit controlled loop which means that condition for next loop iteration is checked at bottom of the loop. the do-while loop will run at least once.
Syntax
do
{
statement;
}
while (condition);
Example of do-while
#include <stdio.h>
int main (void)
{
int i = 0;
while (i>10)
{
printf ("\n%d", i); // Loop prints values 0 to 9.
i++;
}
return 0;
}