converting a string to lowercase inbuld function in cpp
#include <iostream>
#include <algorithm>
int main() {
std::string str = "Hello, World!";
std::transform(str.begin(), str.end(), str.begin(), ::tolower);
std::cout << str << std::endl;
return 0;
}