题解 | #取近似值#
取近似值
http://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
#include <stdio.h> int main(void) { float fat; scanf("%f",&fat); printf("%i",(int)(fat+0.5)); }
取近似值
http://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
#include <stdio.h> int main(void) { float fat; scanf("%f",&fat); printf("%i",(int)(fat+0.5)); }
相关推荐