convert whole string to lowercase c 2b 2b

Solutions on MaxInterview for convert whole string to lowercase c 2b 2b by the best coders in the world

showing results for - "convert whole string to lowercase c 2b 2b"
Lila
26 Oct 2019
1#include<bits/stdc++.h> 
2using namespace std; 
3main() { 
4    string s = "Viet Nam"; 
5    transform(s.begin(), s.end(), s.begin(), ::tolower); //lowercase
6    cout << s << endl; 
7}
8