add while example

This commit is contained in:
Mylloon 2022-12-13 17:10:19 +01:00
parent 8129b36898
commit b7a4356326
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

14
tests/26_while.test Normal file
View 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);
}