Advertisement
Josif_tepe

Untitled

Feb 4th, 2022
1,189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     string zbor;
  6.     cin >> zbor;
  7.    
  8.     for(int i = 0; i < zbor.size(); i++) {
  9.         if(isdigit(zbor[i])) {
  10.             cout << "CIFRA" << endl;
  11.         }
  12.         else if(isalpha(zbor[i])) {
  13.            
  14.             if(isupper(zbor[i])) {
  15.                 cout << "GOLEMA" << endl;
  16.             }
  17.             else {
  18.                 cout << "MALA" << endl;
  19.             }
  20.         }
  21.     }
  22.     return 0;
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement