bingxuan9112

debugA

Apr 9th, 2019
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6.     string s;
  7.     cin >> s;
  8.     for(int i = 0;i < s.length();i++) {
  9.         if('a'<= s[i] <='z') {
  10.             s[i] =  s[i]-'a'+'A';
  11.         }
  12.     }
  13.     cout << s << endl;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment