Skip to content
doubtly

1 answer

Best answer

#include <stdio.h>
#include <conio.h>
 
int main(){
    char c;
    printf("Enter a Character: ");
    scanf("%c", &c);
    if(c == 'a' || c == 'e' || c =='i' || c=='o' || c=='u' || c=='A'
          || c=='E' || c=='I' || c=='O' || c=='U'){
        printf("%c is a Vowel\n", c);
    } else {
        printf("%c is a Consonant\n", c);
    }
    getch();
    return 0;
}
Doubtly · 20 Jul 2022 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.