Add ZeroDivisionError

This commit is contained in:
flyingscorpio@pinebookpro 2021-09-03 09:32:46 +02:00
parent 7090b7a984
commit 4cb54be1f8

View file

@ -14,6 +14,10 @@ Début
Sinon Si operation = "*":
Ecrire(a * b)
Sinon Si operation = "/":
Ecrire(a / b)
Si b = 0:
Ecrire("Erreur : division par 0")
Sinon:
Ecrire(a / b)
FinSi
FinSi
Fin