Write c program to check character is vowel or not |check character is vowel or not if else statement in c programming -99webcode

 Write  c program to check character  is vowel or not |check character is vowel or not  if else  statement in c programming  //a,e,i,o,u



Write c program to check character  is vowel or not |check character is vowel or not  if else  statement in c programming




#include<stdio.h>                      

int main()

{

char ch;

printf("enter a character to check it is vowel or not");

scanf("%c",&ch);

if(ch=='a'||ch=='A'||ch=='e'||ch=='E'||ch=='o'||ch=='O'||ch=='i'||ch=='I'||ch=='u'||ch=='U')

{

printf("entered character is vowel %c",ch);

}

else

{

printf("entered character is not vowel %c ",ch);

}


}



Post a Comment (0)
Previous Post Next Post