eolymp
bolt
Спробуйте наш новий інтерфейс для відправки розв'язків
Задачі

toUpperCase

опубліковано 22.02.24, 17:51:01

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();

}