3018 小写字母转大写字母
#include<iostream>
using namespace std;
int main(){
//输入一个字符
char c;
cin>>c;
//加减32,可以实现字母大小写转换
//小转大:-32
//大转小:+32
c=c-32;
//输出结果
cout<<c;
return 0;
}
#include<iostream>
using namespace std;
int main(){
//输入一个字符
char c;
cin>>c;
//加减32,可以实现字母大小写转换
//小转大:-32
//大转小:+32
c=c-32;
//输出结果
cout<<c;
return 0;
}