fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char a;
  7. while(cin>>a) {
  8. if (a>=97 and a<=122){
  9. cout << (char)(a-32);
  10. }
  11. else{
  12. cout<<a;
  13. }
  14.  
  15. }
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5292KB
stdin
Hello  dsfgadhsfhfs      dfhsfjdgh

4 5
4 7
2 6
3 6
4 5
3 4
6 4
4 5 6 7 43 3 5 5 
stdout
HELLODSFGADHSFHFSDFHSFJDGH45472636453464456743355