Fixing loop variables

This commit is contained in:
Anthony Debucquoy committed 2025-04-29 21:38:31 +02:00
1 parent e2e058c8ac
commit 69d2bbaaf3
3 files changed
+22 -5

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
entier x = 0;
tant que x < 10 faire {
entier y = x;
x = x + 1;
afficher x, y;
}
afficher "yess";
pour chaque entier i dans [1:5] faire {
entier y = i;
y = y + i;
x = x + i;
afficher x, y;
}