Answers for "given character is vowel or not in c"

C
0

vowel or consonant in c

// vowel or consonant check program
#include <stdio.h>
int main()
{
    char ch;
    ch = getchar();
    if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u')
    {
        printf("%c is Vowel\n", ch);
    }
    else
    {
        printf("%c is consonant\n", ch);
    }
    return 0;
}
Posted by: Guest on July-08-2021

Code answers related to "given character is vowel or not in c"

Code answers related to "C"

Browse Popular Code Answers by Language