fork download
  1. #include <cctype>
  2.  
  3. #include <iostream>
  4. #include <algorithm>
  5. #include <string>
  6.  
  7. int main() {
  8.  
  9. using namespace std;
  10.  
  11. string str = "HELLO WORLD";
  12.  
  13. transform( str.begin(), str.end(), str.begin(), ::tolower );
  14.  
  15. cout << str << endl;
  16. }
Success #stdin #stdout 0.02s 2856KB
stdin
Standard input is empty
stdout
hello world