void main()
{ char ch;
printf("Input a character:\n");
scanf("%c",&ch);
ch=(ch>='A'&& ch<='Z')?(ch+32):ch;
printf("ch=%c\n",ch);
}
大写字母转换小写
最新推荐文章于 2024-04-22 17:53:39 发布
void main()
{ char ch;
printf("Input a character:\n");
scanf("%c",&ch);
ch=(ch>='A'&& ch<='Z')?(ch+32):ch;
printf("ch=%c\n",ch);
}