#include<stdio.h> void main() {char ch; printf("请输入一个字符:"); ch=getchar(); if(ch>='0'&&ch<='9') printf("该字符为数字,"); else if(ch>='A'&&ch<='Z'||ch>='Z') printf("该字符为字母,"); else if(ch==' ') printf("该字符为空格."); else printf("该字符为其它."); }
来自游客课堂学习投稿代码(狗头)
感谢您的来访,获取更多精彩文章请收藏本站。

© 版权声明
THE END
暂无评论内容