C语言中7/3=2.3要得到2.3应该怎么做

日期:2021-05-06 04:58:36 人气:1

C语言中7/3=2.3要得到2.3应该怎么做

double a = (double) 7 / 3;
printf("%.1f", a);
    A+
热门评论