fork(1) download
  1. #include<iostream>
  2. #include<cstring>
  3. #include<string>
  4. using namespace std;
  5.  
  6. const int MAX_SIZE = 2001;
  7.  
  8. int main() {
  9. char str[2001][2001];
  10. string str_aux[2001];
  11. int line = 0;
  12. while (!cin.eof()) {
  13. cin.getline(str[line], 101);
  14. ++line;
  15. }
  16. for (int i = 0; i <= line; ++i) {
  17. int length = strlen(str[i]);
  18. for (int element = 0; element < length; ++element) {
  19. if (str[i][element] >= 'A' && str[i][element] <= 'A') {
  20. int aux = str[i][element];
  21. aux += 32;
  22.  
  23. str[i][element] = aux;
  24. cout << str[i][element] << "\n";
  25. }
  26. }
  27. }
  28.  
  29. for (int i = 0; i < line; ++i) {
  30. cout << str[i] << "\n";
  31.  
  32. }
  33. return 0;
  34. }
Success #stdin #stdout 0.01s 5360KB
stdin
fWFE
wrg

wgr
e
e
er
er
r
stdout
fWFE
wrg

wgr
e
e
er
er
r