將大寫字母化為小寫
#include<stdio.h>
main()
{
char x;
scanf("%c\n",&x);
if(x>='A'&&x<='Z')
? ? {
?x=x+'a'-'A';
}
else
{
? x=x;
}
printf("%c\n",x);
return 0;
}
#include<stdio.h>
main()
{
char x;
scanf("%c\n",&x);
if(x>='A'&&x<='Z')
? ? {
?x=x+'a'-'A';
}
else
{
? x=x;
}
printf("%c\n",x);
return 0;
}
舉報
2015-10-20
#include<stdio.h> main() { ????char?x; ????scanf("%c\n",&x); ????if(x>='A'&&x<='Z') ????{ ??????printf("%c\n",x+32); ????} ????else ????{ ??????printf("%c\n",x); ????} ????return?0; }