#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
double a = 0;
while (cin >> a)
{
cout << fixed << setprecision(2) << abs(a) << endl;
}
return 0;
}
HDU 2003
最新推荐文章于 2018-10-19 08:52:44 发布
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
double a = 0;
while (cin >> a)
{
cout << fixed << setprecision(2) << abs(a) << endl;
}
return 0;
}