在C语言中5/3怎么出现小数

日期:2021-07-09 17:16:10 人气:1

在C语言中5/3怎么出现小数

很简单的
printf("%f",(5*1.0)/3);
或者
float a=(5*1.0)/3;
printf("%f",a);
    A+
热门评论