C program to check whether input alphabet is a vowel or not

C program to check whether input alphabet is a vowel or not







#include 
 
int main()
{
char ch;
 
printf("Enter a character ");
scanf("%c", &ch);
 
if (ch == a || ch == A || ch == e || ch == E || ch == i || ch == I || ch ==o || ch==O || ch == u || ch == U)
printf("%c is a vowel. ", ch);
else
printf("%c is not a vowel. ", ch);
 
return 0;
}

Output of program:
check vowel


visit link download

Comments

Popular posts from this blog

ABLiker APK Latest v1 1 Free Download For Android

Cara Install Windows 10

Adobe Photoshop CS6 13 0 1 Extended Free Software