大小写字母转换

来源:互联网 发布:电信运营商的网络架构 编辑:程序博客网 时间:2024/06/07 02:01

#define _CRT_SECURE_NO_WARNINGS 1#include <stdio.h>int main (){int ch=0;while((ch=getchar())!=EOF){if((ch>='A')&&(ch<='Z'))printf("%c\n",ch+32);else{if((ch>='a')&&(ch<='z'))printf("%c\n",ch-32);else;}}system("pause");return 0;}