Having some problems,help me to look!
/*循环从键盘上输入一个小写字符%c,要求输入它对应的大写字符%c,要求输入它对应的大写字符%c
若输入的不是小写字符,则显示它对应的十六进制的ascii码值
*/
#include <stdio.h>
int main()
{
while(1)
{
//输入一个字符
char c,a,z;
scanf("%c",&c);
if(c <= 'z' && c >= 'a')
{
printf("%c\n",c-32);
//printf("%d\n",c-32);
//printf("%d\n",__LINE__);
}
else
{
//printf("%d\n",__LINE__);
printf("%d\n",c);
//printf("%d\n",__LINE__);
}
printf("\n");
//printf("%d\n",c);
}
return 0;
}