/ 科创班 /

记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:8:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(ch >= 'A' && ch <= 'Z')  
  ^~
/in/foo.c:10:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     printf("转换成小写字母是:%c\n",ch);  
     ^~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 256.0 KiB
#2 Wrong Answer 1ms 256.0 KiB
#3 Wrong Answer 1ms 256.0 KiB
#4 Wrong Answer 1ms 256.0 KiB
#5 Wrong Answer 1ms 256.0 KiB
#6 Wrong Answer 1ms 256.0 KiB
#7 Wrong Answer 1ms 256.0 KiB
#8 Wrong Answer 1ms 256.0 KiB
#9 Wrong Answer 1ms 256.0 KiB
#10 Wrong Answer 1ms 256.0 KiB

代码

#include <stdio.h>  
  
int main()  
{  
 char ch;  
 printf("请输入一个字符:");  
 scanf("%c",&ch);  
 if(ch >= 'A' && ch <= 'Z')  
    ch = ch + 32;  
    printf("转换成小写字母是:%c\n",ch);  
    return 0;  
}  

信息

递交者
类型
递交
题目
字符转换
题目数据
下载
语言
C
递交时间
2018-06-20 21:28:49
评测时间
2018-06-20 21:28:49
评测机
分数
0
总耗时
14ms
峰值内存
256.0 KiB