0
已采纳
float a=3830,b=5490;
小数点定义 bf=0,c2017;
bf=sqrt(b/a)-1;
c2017=(1+bf)*5490;
printf("%.2f",int(c2017*100)/100.0);
小数点定义 ;float
0
0
//定义float型a,b
a=sqrt(5490.00/3830)-1;
b=5490*(1+a);
//保留两位小数输出b
别忘了:
#include<cstdio>
#include<cmath>
0
