2021-09-17 10:43:20 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2021-09-20 17:22:39 +02:00
|
|
|
#define ANNEE 2100
|
2021-09-17 10:43:20 +02:00
|
|
|
|
|
|
|
bool bissextile(int ann) {
|
|
|
|
if (((ann % 4 == 0) && (ann % 100 != 0)) || (ann % 400 == 0)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
if (bissextile(ANNEE)) {
|
|
|
|
printf("L'année %d est bissextile.\n", ANNEE);
|
|
|
|
} else {
|
|
|
|
printf("L'année %d n'est pas bissextile.\n", ANNEE);
|
|
|
|
}
|
|
|
|
|
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|