题解 | 实现四舍五入
#include <bits/stdc++.h>
using namespace std;
int main()
{
float c;
cin>>c;
cout<<fixed<<setprecision(0)<<c<<endl;
system("pause");
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
float c;
cin>>c;
cout<<fixed<<setprecision(0)<<c<<endl;
system("pause");
return 0;
}
相关推荐