Guest User

Untitled

a guest
Jan 19th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main (){
  5.     char c;
  6.     cin >> c;
  7.     if (c >= 'A' and c <= 'Z') {
  8.         cout << "uppercase" << endl;
  9.         if (c == 'A' or c == 'E' or c == 'I' or c == 'O' or c == 'U') cout << "vowel" << endl;
  10.         else cout << "consonant" << endl;
  11.     }
  12.     else{
  13.         cout << "lowercase" << endl;
  14.         if (c == 'a' or c == 'e' or c == 'i' or c == 'o' or c == 'u') cout << "vowel" << endl;
  15.         else cout << "consonant" << endl;  
  16.     }
  17. }
Add Comment
Please, Sign In to add comment