A374.判断字符类型
2024-12-30 19:17:35
发布于:江苏
0阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
char ch;
cin>>ch;
if(ch>='A'&&ch<='Z') cout<<'A';
else if(ch>='a'&&ch<='z') cout<<'a';
else if(ch>='0'&&ch<='9') cout<<0;
else cout<<"other";
return 0;
}
这里空空如也
有帮助,赞一个