/* * whloop1.c */ #include int main(void) // header for main, takes nothing, returns int { int counter; // declare int variable counter counter = 0; // initialize counter to zero printf("Starting loop.\n"); while (counter < 11) // enter loop if counter is less than 11 { printf("Loop number: %d\n", counter);// print counter value counter=(counter+1); // increment counter } printf("\nLoop completed.\n"); // print we are done return 0; }