Add bissextile
This commit is contained in:
parent
7b76700844
commit
cba988af72
1 changed files with 19 additions and 0 deletions
19
alogrithmique/bissextile.algo
Normal file
19
alogrithmique/bissextile.algo
Normal file
|
@ -0,0 +1,19 @@
|
|||
Algorithme : Affiche si une année est bissextile.
|
||||
|
||||
Début
|
||||
Variable a : Entier
|
||||
Lire(a)
|
||||
Si a < 0:
|
||||
Ecrire("L'année doit être positive.")
|
||||
Sinon Si a Modulo 400 = 0:
|
||||
Ecrire("bissextile")
|
||||
Sinon Si a Modulo 4 = 0:
|
||||
Si a Modulo 100 = 0:
|
||||
Ecrire("non bissextile")
|
||||
Sinon
|
||||
Ecrire("bissextile")
|
||||
FinSi
|
||||
Sinon:
|
||||
Ecrire("non bissextile")
|
||||
FinSi
|
||||
Fin
|
Loading…
Reference in a new issue