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