C programming: Find Vowel-Consonant Or if Other

#include
int main()
{
    char ch;
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
        printf("%c is lower case vowel",ch);
    }
    else if(ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U')
    {

    printf("%c is Upper case vowel",ch);
    }
    else if(ch>='a'&&ch<='z')
    {
        printf("%c is lower consonant",ch);
    }
    else if(ch>='A'&&ch<='Z')
    {
        printf("%c is upper consonant",ch);
    }
    else
    {
        printf("There is no english word");
    }
    getchar();
    return 0;
}


Facebook

Comments

Popular posts from this blog

For loop C++

VALENTINE DAY PROGRAME

Charecter & space founder in c program