你想用什么语言实现啊?C还是C++还是Java写个C语言的吧#includeintmain(){charch;printf("Enterachar:\n");scanf("%c",&ch);if(ch>='0'&&ch<='9'){printf("number\n");}elseif(ch>='A'&&ch<='z'){printf("capital\n");}else{printf("other\n");}return0;}