fork(1) download
  1. #include <stdio.h>
  2. int main(void) {
  3. char ch;
  4. //your code goes here
  5. scanf("%c",&ch);
  6. if((ch>='0')&&(ch<='9'))
  7. printf("这是一个数字字符");
  8. else if((ch>='a')&&(ch<='z'))
  9. printf("这是一个小写字母");
  10. else if((ch>='A')&&(ch<='Z'))
  11. printf("这是一个大写字母");
  12. else if(ch == ' ')
  13. printf("这是一个空格");
  14. else
  15. printf("这是其它字符");
  16. return 0;
  17. }
Success #stdin #stdout 0s 5320KB
stdin
8
stdout
这是一个数字字符