1015:大小写问题

来源:互联网 发布:怎么自己开淘宝网店 编辑:程序博客网 时间:2024/06/07 00:50

1015:大小写问题


Description


输入一串字符,将其中的大写变成小写,若不为大写则原样输出。


Input


任意字符串(长度在100以内)以回车表示输入结束。


Output


将其中的大写输出相应的小写,若不为大写则原样输出。


Sample Input


A 123b


Sample Output


a123b


Source


#include<iostream>#include<stdio.h>using namespace std;int main(){      char a;    while(1==scanf("%c",&a))    {        if(a>=65&&a<=90)            a=a+32;   cout<<a;    }return 0; }


原创粉丝点击