Create vowel or consonent

This commit is contained in:
pbhatnagar3248 2020-10-05 17:42:09 +05:30 committed by GitHub
parent fd7a9f6007
commit 80b39c72a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

23
vowel or consonent Normal file
View File

@ -0,0 +1,23 @@
#include<stdio.h>
void main()
{
char c;
printf("enter any character");
scanf("%c",&c);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u')
{
printf("its a vowel");
}
else if(c== h'A'||c=='E'||c=='I'||c=='O'||c=='U')
{
printf("its a vowel");
}
else
{
printf("its a consonent");
}
}