Skip to content

Commit a1cad5c

Browse files
committed
do while loop
1 parent 6986f70 commit a1cad5c

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

lecture_3/dowhile

16.9 KB
Binary file not shown.

lecture_3/dowhile.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Do while loop
2+
// Exit control loop
3+
#include <stdio.h>
4+
int main (){
5+
6+
printf("Jerry\n");
7+
int i = 1;
8+
do { // Do this
9+
printf(" i = %d \n",i);
10+
i++;
11+
12+
} while(i<=10); //While this condition is true
13+
14+
return 0;
15+
}

lecture_3/lecture_3

48 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)