c while løkke code example
Example 1: WHILE loop in c
while( a < 20 ) {
printf("value of a: %d\n", a);
a++;
}
Example 2: whiel loop in C
while (testExpression)
{
// statements inside the body of the loop
}
while( a < 20 ) {
printf("value of a: %d\n", a);
a++;
}
while (testExpression)
{
// statements inside the body of the loop
}