Advertisement
Josif_tepe

Untitled

Nov 3rd, 2023
616
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. using namespace std;
  4.  
  5. int main() {
  6.     char c;
  7.     cin >> c;
  8.    
  9.     if(isalpha(c)) {
  10.         if(isupper(c)) {
  11.             cout << "GOLEMA" << endl;
  12.         }
  13.         else {
  14.             cout << "MALA" << endl;
  15.         }
  16.     }
  17.     else {
  18.         cout << "GRESKA" << endl;
  19.     }
  20.     return 0;
  21. }
  22.  
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement