Accepted
/in/foo.c: In function 'main': /in/foo.c:11:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ /in/foo.c:14:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else' return 0; ^~~~~~ /in/foo.c:4:9: warning: unused variable 'temp' [-Wunused-variable] char n,temp; ^~~~
代码
#include<stdio.h>
int main()
{
char n,temp;
scanf("%c",&n);
if(n>=65&&n<=90)
{
n+=32;
printf("%c\n",n);
}
else
if(n>=97&&n<=122)
printf("%c\n",n);
return 0;
}