First commit
This commit is contained in:
13
IUT/Info1/TD/Exercices/6.8.2_bisextile/fonctions.cpp
Normal file
13
IUT/Info1/TD/Exercices/6.8.2_bisextile/fonctions.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "fonctions.h"
|
||||
|
||||
bool estBisextile(int annee) {
|
||||
bool bisextile;
|
||||
|
||||
if (annee % 4 == 0 && annee % 100 != 0 || annee % 400 == 0 && annee % 4000 != 0) {
|
||||
bisextile = true;
|
||||
} else {
|
||||
bisextile = false;
|
||||
}
|
||||
|
||||
return bisextile;
|
||||
}
|
||||
Reference in New Issue
Block a user