c语言:float x=91.19;写出表达式(int)(10*x+0.5)/10.0的运算结果

日期:2021-11-05 03:04:40 人气:1

c语言:float x=91.19;写出表达式(int)(10*x+0.5)/10.0的运算结果

float x=91.19;
10*x = 911.9 ;
10*x+0.5 = 912.4
(int)(10*x+0.5) = 912
(int)(10*x+0.5)/10.0 = 91.2
    A+
热门评论