rorschack

c++ cw prog - vowel

Aug 13th, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream.h>
  2. #include <conio.h>
  3.  
  4. int main()
  5. {
  6.     clrscr();
  7.     char inp;
  8.     cout << "Enter an Alphabet: ";
  9.     cin >> inp;
  10.     if(inp=='a'||inp=='e'||inp=='i'||inp=='o'||inp=='u'||inp=='A'||inp=='E'||inp=='I'||inp=='O'||inp=='U')
  11.         cout << "\n\nEntered Alphabet is a vowel.";
  12.     else
  13.         cout << "\n\nEntered Alphabet is not a vowel.";
  14.     getch();
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment