#include <stdio.h> int main() { char x; scanf("%c", &x); if (x >= 'a' && x <= 'z') printf("%c", x - 32); else if (x >= 'A' && x <= 'Z') printf("%c", x + 32); else printf("%c", x); return 0; }
标签:输出,字符,小写字母,大写字母,&&,输入 From: https://www.cnblogs.com/lachesism/p/16732852.html