#include <stdio.h> #include <string.h> int main() { char arr[] = "AEIOUaeiou"; char letter; while (scanf("%c", &letter) != EOF) { if (strchr(arr, letter)) { printf("Vowel\n"); getchar(); } else { printf("Consonant\n"); getchar(); } } return 0; }
#include <stdio.h> #include <string.h> int main() { char arr[] = "AEIOUaeiou"; char letter; while (scanf("%c", &letter) != EOF) { if (strchr(arr, letter)) { printf("Vowel\n"); getchar(); } else { printf("Consonant\n"); getchar(); } } return 0; }