#include<stdio.h>main(){charch;printf("從鍵盤輸入一個字符\n");ch=getchar();if(97<=ch&&ch<=122){printf("該字符為小寫字母");putchar('\n');
}elseif(65<=ch&&ch<=90){printf("該字符為大寫字母");putchar('\n');
}elseif(48<=ch&&ch<=57){printf("該字符為數字");putchar('\n');
}elseif(ch==32){printf("該字符為空格");;putchar('\n');
}else{printf("該字符為其它字符");putchar('\n');}}