Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- /* Take a smaller letter alphabet as input and print whether it is
- VOWEL or CONSONANT */
- char letter;
- scanf("%c", &letter);
- if (letter == 'a' || letter == 'e' || letter == 'i' || letter == 'o' || letter == 'u') {
- printf("VOWEL");
- } else {
- printf("CONSONANT");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement