CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
using namespace std;
int main() {
string str = "おはようございます。"; // Japanese (Good morning)
// string str = "這句字是以中文寫成的"; // Chinese (This sentence is written in Chinese)
for (auto& i : str) {
i = tolower(i);
}
cout << str;
}
// This code works for Japanese & Chinese.
// However, these languages don't have the concept of lowercase and uppercase, the output is the same as the string
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run