题解 | #字母大小写转换#
字母大小写转换
http://www.nowcoder.com/practice/850ebd30a2a34cfc87199da3fc15786a
#include <stdio.h>
int main() { char a = 0; while (scanf("%c", &a) != EOF) { getchar(); if (a>='a' && a<='z') printf("%c\n", a-32); if (a>='A' && a<='Z') printf("%c\n", a+32); } return 0; }