initial import
[staff/goc4/2018bti7061.git] / c-2-controlStructures / examples / controlStatements / while.c
1 #include <stdio.h>
2
3 main(){
4
5 puts("Examples for while");
6
7 puts("-------------------------");
8 puts("Example 1");
9
10 int digit = 0;
11 while(digit <= 9){
12 printf("%d\n",digit);
13 ++digit;
14 }
15
16 puts("-------------------------");
17 puts("Example 2");
18
19
20
21
22
23 }