Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
int main() {
int x = 5;
printf("Entry-Control Loop (while):\n");
while (x < 5) {
printf("This will NOT execute\n");
}
printf("While loop skipped because condition is false\n");
printf("\nExit-Control Loop (do-while):\n");
do {
printf("This will execute at least once\n");
} while (x < 5);
printf("Do-while loop executed once even though condition is false\n");
return 0;
}Coding works best on desktop or with an external keyboard.