23、32、输入一个字符,输出其大写字符 (待完成)

作业

32题 参考

思路

printf("请输入字符:");

        scanf("%c",&temp);
        if((temp>='0') && (temp <= '9'))
            printf("数字 ");
        else if((temp>='a') && (temp <= 'z'))
            printf("小写字母 ");
        else if((temp>='A') && (temp <= 'Z'))
            printf("大写字母 ");
        else
            printf("其他字符 ");
 
原文地址:https://www.cnblogs.com/guojiusong/p/8031467.html