本题很简单。 在此我就不跟大家讲了。 代码: .cpp复制#include <bits/stdc++.h> using namespace std; double n; //定义变量 int main(){ cin >> n; //输入 cout << fixed << setprecision(3) << n << endl; //输出 return 0; }