Advertisement
Josif_tepe

Untitled

Nov 18th, 2023
542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8. {
  9.     char c;
  10.     cin >> c;
  11.    
  12.     if(isalpha(c)) {
  13.         if(isupper(c)) {
  14.             cout << "GOLEMA" << endl;
  15.         }
  16.         else {
  17.             cout << "MALA" << endl;
  18.         }
  19.     }
  20.     else {
  21.         cout << "GRESKA" << endl;
  22.     }
  23.     return 0;
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement