19 lines
386 B
Text
19 lines
386 B
Text
Algorithme : Implémente les quatre opérations (+ - * /)
|
|
|
|
Début
|
|
Variable a, b : Entier
|
|
Variable operation : Chaine
|
|
Lire(a)
|
|
Lire(operation)
|
|
Lire(b)
|
|
|
|
Si operation = "+":
|
|
Ecrire(a + b)
|
|
Sinon Si operation = "-":
|
|
Ecrire(a - b)
|
|
Sinon Si operation = "*":
|
|
Ecrire(a * b)
|
|
Sinon Si operation = "/":
|
|
Ecrire(a / b)
|
|
FinSi
|
|
Fin
|