sdut_1116

来源:互联网 发布:阿里云系统的手机 编辑:程序博客网 时间:2024/06/05 06:24

点击打开链接

C语言实验——转换字母(顺序结构)

Time Limit: 1000MS Memory Limit: 65536KB
Submit Statistic Discuss

Problem Description

从键盘上输入一个小写字母,然后将小写字母装换成大写字母输出!

Input

从键盘上输入一个小写字母。

Output

小写字母装换成大写字母输出。

Example Input

a

Example Output

A

Hint

Author

#include <iostream>using namespace std;int main(){char c;cin>>c;cout<<char(c-32)<<endl;return 0;}/***************************************************User name: YT1658506207邵雪源Result: AcceptedTake time: 0msTake Memory: 212KBSubmit time: 2017-07-26 14:32:32****************************************************/
原创粉丝点击