Initialisation du projet mp-scratch
[mp-scratch.git] / doc / figures / Ex-Multiplication.mp
1 input mp-scratch;
2
3 beginfig(1);
4   draw Drapeau;
5   draw RepeterI1;
6   draw MettreVar("a","\opOp{nombre aléatoire entre \opSimple{1} et \opSimple{10}}");
7   draw MettreVar("b","\opOp{nombre aléatoire entre \opSimple{1} et \opSimple{10}}");
8   draw Demander("Résultat de la multiplication ?");
9   draw Si[2]("\opOp{\opCap{réponse}$=$\opVar{a}$\times$\opVar{b}}");
10   draw DireT("\opSimple{Gagné}",2);
11   draw Sinon2;
12   draw DireT("\opSimple{Perdu, la réponse était : }",2);
13   draw DireT("\opOp{$\opVar{a}\times\opVar{b}$}",2);
14   draw FinBlocSi2;
15   draw FinBlocRepeter1(10);
16 endfig;
17 end

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.