Skip to content

Instantly share code, notes, and snippets.

@Pikrass
Last active December 15, 2015 06:09
Show Gist options
  • Save Pikrass/5214020 to your computer and use it in GitHub Desktop.
Save Pikrass/5214020 to your computer and use it in GitHub Desktop.
Un programme Plic (Petit Langage d'Introduction à la Compilation) qui crée une boucle pour démoniaque. Ou pas.
programme chateau_for {
entier a b i tmp;
a := 10;
b := 20;
pour i dans a .. b repeter {
ecrire i;
si(i > 11 || a > b) alors {
tmp := a;
a := b;
b := a;
} finsi
}
}
@Pikrass
Copy link
Author

Pikrass commented Mar 21, 2013

Possibilité n°3 : i s'en fout et se souvient des bornes initiales
10
11
12
13
14
15
16
17
18
19
20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment