Advertisement
spacerose

4-5

Feb 18th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. /*{
  5.     int N;
  6.     cin >> N;
  7.     if ((N < 1) || (N > 9))
  8.         cout << "N is wrong: " << N;
  9.     else
  10.         for (int i = 0; i < N; i++) {
  11.             for (int j = 1; j < i+2; j++)
  12.                 cout << j << " ";
  13.             cout << endl;
  14.         }
  15. }
  16. */
  17.  
  18. {
  19.     char ltr;
  20.     cin >> ltr;
  21.     ltr = tolower(ltr);
  22.     if (ltr > 96 && ltr < 123) {
  23.         if (ltr == 97 || ltr == 101 || ltr == 105 || ltr == 111 || ltr == 117 || ltr == 121)
  24.             cout << "vowel";
  25.         else
  26.             cout << "consonant";
  27.     }
  28.     else
  29.         cout << "Not letter";
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement