Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Write a program to enter a character and then determine whether it is a vowel or not. */
- #include<conio.h>
- #include<stdio.h>
- void main()
- {
- char ch;
- clrscr();
- printf("\n--------------------------------------");
- printf("\n Check Entered Character Vowel Or Not");
- printf("\n--------------------------------------");
- printf("\n Enter Char : ");
- 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(" Entred Character is Vowel");
- }
- else
- {
- printf(" Entred Character is Not Vowel");
- }
- getch();
- }
Add Comment
Please, Sign In to add comment