From b7a4356326908839da0464b8eafff6c6f6cb02e2 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 13 Dec 2022 17:10:19 +0100 Subject: [PATCH] add while example --- tests/26_while.test | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/26_while.test diff --git a/tests/26_while.test b/tests/26_while.test new file mode 100644 index 0000000..7b5bc90 --- /dev/null +++ b/tests/26_while.test @@ -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); +}