c code while loop code example
Example 1: c do while
do {
// code
} while(/* condition */);
Example 2: WHILE loop in c
while( a < 20 ) {
printf("value of a: %d\n", a);
a++;
}
do {
// code
} while(/* condition */);
while( a < 20 ) {
printf("value of a: %d\n", a);
a++;
}