2024-09-10 17:30:28 +02:00
|
|
|
# include <stdio.h>
|
|
|
|
# include <stdlib.h>
|
|
|
|
|
2024-09-16 14:55:29 +02:00
|
|
|
/* VERSION 1 */
|
|
|
|
|
2024-09-10 17:30:28 +02:00
|
|
|
int main(void) {
|
2024-09-16 14:55:29 +02:00
|
|
|
int annee;
|
|
|
|
annee = 2024;
|
|
|
|
if ((annee % 4 == 0 && annee % 100 != 0) || annee % 400 == 0) {
|
|
|
|
printf("C'est une année bissextile");
|
2024-09-10 17:30:28 +02:00
|
|
|
}
|
2024-09-16 14:55:29 +02:00
|
|
|
else {
|
|
|
|
printf("Ce n'est pas une année bissextile");
|
|
|
|
}
|
|
|
|
|
2024-09-10 17:30:28 +02:00
|
|
|
|
2024-09-16 14:55:29 +02:00
|
|
|
return EXIT_SUCCESS;
|
2024-09-10 17:30:28 +02:00
|
|
|
}
|