Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- char ch;
- printf(" Enter the any 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 vowel\n",ch);
- }
- else
- {
- printf("%c is consonant\n",ch);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment