小编use*_*715的帖子

为什么浮动不起作用?

在我的代码中,输出是2.000000,而它应该是2.11111

#include<stdio.h>main(){
int i,j;
float r;
i = 19;
j = 9;
r = i / j;
printf(" %f ",r);}
Run Code Online (Sandbox Code Playgroud)

为什么它不起作用?

c floating-point floating-point-conversion

2
推荐指数
1
解决办法
2376
查看次数