eolymp
bolt
Try our new interface for solving problems
Problems

toUpperCase

published at 2/22/24, 5:51:01 pm

include <bits/stdc++.h>

using namespace std; void solve(){

string s; getline(cin, s); for(auto ch : s) { char cur = (ch >= 'a' && ch <= 'z' ? 'A' + (ch - 'a') : ch); cout << cur; }

}

int main(){ iosbase::syncwith_stdio(false);cin.tie(NULL);cout.tie(NULL); //int t;cin>>t;while(t--) solve();

}