fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. char ch;
  6. scanf("%c",&ch);
  7. if(ch>='0'&&ch<='9')
  8. {
  9. printf("这是一个数字字符");
  10. }
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5320KB
stdin
6
stdout
这是一个数字字符