题解 | #字母大小写转换#
字母大小写转换
https://www.nowcoder.com/practice/850ebd30a2a34cfc87199da3fc15786a
#include <stdio.h> int main() { int ch = 0; while ((ch = getchar()) != EOF) { getchar(); if ('A' <= ch && ch <= 'Z') ch += 32; else if ('a' <= ch && ch <= 'z') ch -= 32; printf("%c\n", ch); } return 0; }
c语言刷题 文章被收录于专栏
c语言刷题题目