#include<stdio.h>
int main()
{char n;scanf("%c",&n);if (n>='a'&&n<='z')printf("%c",n=n-32);else if(n>='A'&&n<='Z')printf("%c",n);return 0;
}
详细解决方案
【1317】大小写转换
热度:11 发布时间:2023-12-06 10:03:22.0
#include<stdio.h>
int main()
{char n;scanf("%c",&n);if (n>='a'&&n<='z')printf("%c",n=n-32);else if(n>='A'&&n<='Z')printf("%c",n);return 0;
}