Vowel or Consonant
//check whether the alphabate is vowel or consonat
#include<stdio.h>
int main()
{
char ch;
printf("enter the alphabate which you want to check: ");
scanf("%c",&ch);
if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'||ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U')
{
printf("it is a vowel:");
}
else
printf("it is a consonant");
}
Comments
Post a Comment