fork download
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. string uppercase(string u){
  6. for(int i=0; i<u.size(); ++i){
  7. u[i]=u[i]-32;
  8. }
  9.  
  10.  
  11. return u;
  12. }
  13.  
  14. int main(){
  15.  
  16. string str;
  17. while(cin){
  18. cin>>str;
  19. cout<<uppercase(str)<<'\n';
  20. }
  21.  
  22.  
  23. }
Success #stdin #stdout 0.01s 5316KB
stdin
subscribe to the luv channel
stdout
SUBSCRIBE
TO
THE
LUV
CHANNEL
CHANNEL