C++ 代码
#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
int main(){
string up;
cin >> up;
string down;
//表示对于up字符串中的每个字符,
//将其依次赋值给变量c,
//然后执行循环体内的代码。
for(char c : up){
down += tolower(c); //tolower函数来逐个字符地将大写字符串转换为小写,
//并将结果添加到down字符串中
}
cout << down << endl;
return 0;
}