#include <stdio.h> int main() { char s[] = "AaEeIiOoUu"; char ch = 0; while (scanf(" %c", &ch)!= EOF) { int i = 0; for(i = 0; i < 10; i++) { if (ch == s[i]) { printf("Vowel\n"); break; } } if (i == 10) { printf("Consonant\n"); } } return 0; }
#include <stdio.h> int main() { char s[] = "AaEeIiOoUu"; char ch = 0; while (scanf(" %c", &ch)!= EOF) { int i = 0; for(i = 0; i < 10; i++) { if (ch == s[i]) { printf("Vowel\n"); break; } } if (i == 10) { printf("Consonant\n"); } } return 0; }