// 给定一个大写字母,要求用小写字母输出 #include <stdio.h> int main() { char c; printf("请输入一个大写字母:"); scanf("%c",&c); c = c + 32; printf("该大写字母的小写是:%c\n",c); return 0; }
时间: 2024-07-29 00:57:15
// 给定一个大写字母,要求用小写字母输出 #include <stdio.h> int main() { char c; printf("请输入一个大写字母:"); scanf("%c",&c); c = c + 32; printf("该大写字母的小写是:%c\n",c); return 0; }