DEV/DEV1.1/CM1/exo3.c

30 lines
550 B
C
Raw Normal View History

2024-10-22 15:14:54 +02:00
#include <stdio.h>
#include <stdlib.h>
int main(void){
char charactere;
char tab[6]={'a','e','i','o','y'};
printf("entrez un charactère : ");
scanf("%c", &charactere);
if(charactere == 'a'){
printf("voyelle");
}else if(charactere == 'e'){
printf("voyelle");
}else if(charactere == 'i'){
printf("voyelle");
}else if(charactere == 'o'){
printf("voyelle");
}else if(charactere == 'u'){
printf("voyelle");
}else if(charactere == 'y'){
printf("voyelle");
}else{
printf("minuscule");
}
printf("\n");
return EXIT_SUCCESS;
}