Virajsinh

A_PRM_11

Oct 7th, 2017
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.62 KB | None | 0 0
  1. /* Write a program to enter a character and then determine whether it is a vowel or not. */
  2. #include<conio.h>
  3. #include<stdio.h>
  4.  
  5. void main()
  6. {
  7.     char ch;
  8.     clrscr();
  9.     printf("\n--------------------------------------");
  10.     printf("\n Check Entered Character Vowel Or Not");
  11.     printf("\n--------------------------------------");
  12.     printf("\n Enter Char : ");
  13.     scanf("%c",&ch);
  14.  
  15.     if(ch == 'a'|| ch =='A' || ch == 'e' || ch == 'E' || ch == 'i'|| ch == 'I'|| ch == 'O'|| ch == 'o'|| ch == 'U'|| ch == 'u')
  16.     {
  17.         printf(" Entred Character is Vowel");
  18.     }
  19.     else
  20.     {
  21.         printf(" Entred Character is Not Vowel");
  22.     }
  23.    
  24.     getch();
  25. }
Add Comment
Please, Sign In to add comment