fin TP05 et début TP06

This commit is contained in:
2023-09-19 15:01:30 +02:00
parent f92804ce8d
commit 7ea4eeae0b
8 changed files with 82 additions and 0 deletions

13
DEV1.1/TP05/bissextile2.c Normal file
View File

@@ -0,0 +1,13 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int an;
printf("Donnez un année : \n");
scanf("%d",&an);
if (((an%4)==0 && (an%100)!=0) || ((an%400)==0))
printf("%d est une année bissextile \n",an);
else
printf("%d n'est pas une année bissextile \n",an);
return EXIT_SUCCESS;
}