Create vowel or consonent
This commit is contained in:
parent
fd7a9f6007
commit
80b39c72a7
23
vowel or consonent
Normal file
23
vowel or consonent
Normal 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");
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user