杭电OJ2003

#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
	double x;
	while (cin >> x)
	{
		if (x >= 0);
		else x = -x;
		cout << setprecision(2) << fixed << x << endl;
	}
}

猜你喜欢

转载自blog.csdn.net/weixin_42265486/article/details/83505594