取近似值
取近似值
http://www.nowcoder.com/questionTerminal/3ab09737afb645cc82c35d56a5ce802a
#include <stdio.h> int main(void) { double num; scanf("%lf",&num); printf("%d",(int)(num + 0.5)); return 0; }
取近似值
http://www.nowcoder.com/questionTerminal/3ab09737afb645cc82c35d56a5ce802a
#include <stdio.h> int main(void) { double num; scanf("%lf",&num); printf("%d",(int)(num + 0.5)); return 0; }
相关推荐