1-1字符判断
#include<stdio.h> int main() { char c; scanf("%c",&c); if(c>='a'&&c<='z') { c=c-32; printf("%c\n",c); } else if(c>='A'&&c<='Z') { c=c+32; printf("%c\n",c); } else if(c>=0&&c<=9) { c=c; printf("%c\n",c); } else if(c==' ') { printf("space\n"); } else { printf("other\n"); } return 0; }
![](https://images2015.cnblogs.com/blog/1032169/201610/1032169-20161023094349263-1116247156.png)