Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- char input;
- cin >> input;
- if ('0' <= input and input <= '9') cout << "digit" << endl;
- else if ((('A' <= input) and (input <= 'Z')) or (('a' <= input) and (input <= 'z'))) cout << "lletra" << endl;
- else cout << "res" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement