华为oj 007

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_25244495/article/details/82191893

【华为OJ】【007-取近似值】

题目链接:

https://blog.csdn.net/DERRANTCM/article/details/51315104

C++实现:

void main()
{
	float n1;
	cin >> n1;

	cout << (int)(n1+ 0.5f)<< endl;
	system("pause");
}

猜你喜欢

转载自blog.csdn.net/qq_25244495/article/details/82191893
007