DEV_BUT1/DEV1.1/CONTROLE/parite.c

16 lines
281 B
C

#include <stdio.h>
#include <stdlib.h>
int main(void){
int ent1;
int ent2;
printf("Donnez un entier : ");
scanf("%d\n", &ent1);
printf("Donnez un entier : ");
scanf("%d\n", &ent2);
if (ent1%2 == 0 || ent2%2 == 0){
printf("Pair");
}
else
printf("Impair");
return 0;
}