J.cpp 281 B

12345678910111213
  1. #include<iostream>
  2. #include<string>
  3. using namespace std;
  4. int main(){
  5. string str;
  6. while(cin >> str){
  7. for(int i = 0; i < str.size(); i++){
  8. if('a' <= str[i] && 'z' >= str[i]) str[i] += 'A' - 'a';
  9. }
  10. cout << str << endl;
  11. }
  12. return 0;
  13. }