//C program to check if a character
//is a consonant or a vowel
#include <stdio.h>

//Driver Code
int main() 
{
    char ch='A';

    //Checking if the character ch
    //is a vowel or not
    if(ch=='a'|| ch=='A' || ch=='e' || ch=='E'
       ||ch=='i'|| ch=='I' || ch=='o' || ch=='O' 
       ||ch=='u'|| ch=='U' ){
        printf("the character %c is a vowel.\n",ch);
        }
    else{
        printf("the character %c is a consonant.\n",ch);
    }
   
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: