题解 | #取近似值#
取近似值
https://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
#include <iostream> using namespace std; int main() { float f; cin >> f; cout << (int)(f + 0.5); }
取近似值
https://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
#include <iostream> using namespace std; int main() { float f; cin >> f; cout << (int)(f + 0.5); }
相关推荐