Add ZeroDivisionError
This commit is contained in:
parent
7090b7a984
commit
4cb54be1f8
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue