HJ7 取近似值
取近似值
https://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a?tpId=37&&tqId=21230&rp=1&ru=/ta/huawei&qru=/ta/huawei/question-ranking
#include
int main() { using namespace std; double number = 0; cin>>number; number = number + 0.5; cout<<(int)number<<endl; return 0; }