Advertisement
howarto

Problem P96589_en: Control C101C

Oct 2nd, 2014
784
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6.     char input;
  7.     cin >> input;
  8.     if ('0' <= input and input <= '9') cout << "digit" << endl;
  9.     else if ((('A' <= input) and (input <= 'Z')) or (('a' <= input) and (input <= 'z'))) cout << "lletra" << endl;
  10.     else cout << "res" << endl;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement