/* File: gym2.c Demonstrating nested loops Still two non-nested loops. Prints reps on one line. */ #include int main() { int i, j ; printf("Today I go to the gym to do sit ups and push ups.\n") ; i = 1 ; printf("Sit up:") ; while(i <= 10) { printf(" #%d", i) ; i = i + 1 ; } printf("\n") ; j = 1 ; printf("Push up:") ; while(j <= 10) { printf(" #%d", j) ; j = j + 1 ; } printf("\n") ; return 0 ; }