Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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
", ch);
    }
    else
    {
        printf("%c is consonant
", ch);
    }
    return 0;
}
 
PREVIOUS NEXT
Tagged: #vowel #consonant
ADD COMMENT
Topic
Name
4+1 =