// Demonstration of infinite while loops // // Written by: Angela Finlayson // Date: 14/09/2024 #include int main(void) { // while (1) { // printf("I love my COMP1511 lectures!\n"); // } int push_ups = 10; while (push_ups > 0) { printf("You have %d push-ups left!\n", push_ups); push_ups = push_ups - 1; } printf("Congratulations you have %d left!\n", push_ups); return 0; }