#include#include using namespace std; int main() { string str = "HELLO WORLD"; for(int i = 0; i < str.size(); i++) { str[i] = tolower(str[i]); } cout << str << endl; return 0; }
#includeOutput: hello world Library:#include using namespace std; int main() { string str = "hElLo WoRlD"; transform(str.begin(), str.end(), str.begin(), ::tolower); cout << str << endl; return 0; }