作业
32题 参考
思路
printf
(
"请输入字符:"
);
scanf
(
"%c"
,&temp);
if
((temp>=
'0'
) && (temp <=
'9'
))
printf
(
"数字\n"
);
else
if
((temp>=
'a'
) && (temp <=
'z'
))
printf
(
"小写字母\n"
);
else
if
((temp>=
'A'
) && (temp <=
'Z'
))
printf
(
"大写字母\n"
);
else
printf
(
"其他字符\n"
);