使用计算机进行运算.

问题一

img

img


请问哪里写的不对呀?
问题二 double 和 float分别什么时候用啊

int x;
改为
float x;

想提高计算精度就用double,否则用float