3: 大小写转换

3 大小写转换

作者: 江宝钏 时间限制: 1S 章节: 顺序结构

问题描述 :
从键盘输入一个大写字母,改用小写字母输出。

输入说明 :
一个大写英文字符

输出说明 :
对应的小写英文字符。

输入范例 :
A
输出范例 :
a
代码:

#include <stdio.h>
int main()
{
    char n;
    n = getchar();
        n+=32;
        putchar(n);
    return 0;
}

猜你喜欢

转载自www.cnblogs.com/VictorierJwr/p/12242167.html
今日推荐