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[201][201];
  10. string str_aux[201];
  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 << aux << "\n";
  25. }
  26. }
  27. }
  28. return 0;
  29. }
Success #stdin #stdout 0.01s 5460KB
stdin
fWFE
wrg

wgr
e
e
er
er
r
stdout
Standard output is empty