add while example
This commit is contained in:
parent
8129b36898
commit
b7a4356326
1 changed files with 14 additions and 0 deletions
14
tests/26_while.test
Normal file
14
tests/26_while.test
Normal file
|
@ -0,0 +1,14 @@
|
|||
void affiche(int i) {
|
||||
puti(i);
|
||||
puts("\n");
|
||||
}
|
||||
|
||||
void main () {
|
||||
int a = 0;
|
||||
while (a < 10) {
|
||||
affiche(a);
|
||||
a = a + 1;
|
||||
}
|
||||
|
||||
affiche(a);
|
||||
}
|
Reference in a new issue