Jed
0
Q:

WHILE loop in c

// Print 1-10 using while loop
int i = 1;
while( i <= 10 ) {
     printf("%d\n", i);
}
2
while (testExpression) 
{
    // statements inside the body of the loop 
}
0
while( a < 20 ) {
      printf("value of a: %d\n", a);
      a++;
   }
0

New to Communities?

Join the community