easy partiel

This commit is contained in:
2016-02-23 18:02:37 +01:00
parent cd4e0880e5
commit 336d8d58bd
102 changed files with 15322 additions and 10 deletions

View File

@@ -0,0 +1,25 @@
add (entier $a, entier $b)
{
retour $a + $b;
}
mult (entier $a, entier $b)
{
retour $a * $b;
}
main()
entier $a, entier $b, entier $op;
{
$a = lire();
$b = lire();
$op = lire();
si $op = 1 alors {
ecrire(add($a, $b));
}
sinon {
si $op = 2 alors {
ecrire(mult($a, $b));
}
}
}