A733.浮点数输出
2025-04-12 20:46:38
发布于:浙江
2阅读
0回复
0点赞
#include <iostream>
#include <iomanip> // 引入iomanip库以支持格式化输出
using namespace std;
int main() {
double s;
cin >> s; // 读取输入浮点数
// 设置输出格式:固定小数点模式,并保留5位小数
cout << fixed << setprecision(5) << s << endl;
return 0;
}
这里空空如也
有帮助,赞一个