Fixing loop variables

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

15
examples/boucles_var.spf Normal file
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;
}