Add pair-impair.algo
This commit is contained in:
parent
4cb54be1f8
commit
22b903606e
1 changed files with 11 additions and 0 deletions
11
alogrithmique/pair-impair.algo
Normal file
11
alogrithmique/pair-impair.algo
Normal file
|
@ -0,0 +1,11 @@
|
|||
Algorithme : Calcule et affiche si un entier est pair ou impair
|
||||
|
||||
Début
|
||||
Variable n : Entier
|
||||
Lire(n)
|
||||
Si n Modulo 2 = 0:
|
||||
Ecrire("pair")
|
||||
Sinon:
|
||||
Ecrire("impair")
|
||||
FinSi
|
||||
Fin
|
Loading…
Reference in a new issue