Run ID:110690
提交时间:2025-02-22 17:09:51
#include <iostream> using namespace std; int main() { char ch; cin >> ch; // 读取输入的字符 // 判断字符类别 if (ch >= 'A' && ch <= 'Z') { cout << "Upper Letter" << endl; } else if (ch >= 'a' && ch <= 'z') { cout << "Lower Letter" << endl; } else if (ch >= '0' && ch <= '9') { cout << "Digital" << endl; } else { cout << "other" << endl; } return 0; }