Preview:
class Solution {
public:
    string toLowerCase(string s) {
        int n=s.size();
        string s1="";
        for(int i=0;i<n;i++)
        {
            if(int(s[i])>=65 && int(s[i])<=90)
            {
                s1+=s[i]+32;
                continue;
            }
            s1+=s[i];
        }
        return s1;
    }
};
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter