sdut_1116
点击打开链接
C语言实验——转换字母(顺序结构)
Time Limit: 1000MS Memory Limit: 65536KB
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: Accepted
Take time: 0ms
Take Memory: 212KB
Submit time: 2017-07-26 14:32:32
****************************************************/

浙公网安备 33010602011771号