c语言的fatal error c1010问题

2024-12-02 23:31:13
推荐回答(1个)
回答(1):

/*
(1) = 1207.000000
(2) = 1117.392245
(3) = 1178.793038
(4) = 1089.315619
(5) = 1036.622300
Press any key to continue
*/
#include
#include
int main() {
double _1,_2,_3,_4,_5,a,b,c,d,f;
a = 0.0414;
b = 0.0468;
c = 0.0540;
d = 0.0585;
f = 0.0072;
_1 = 1000 * (1 + 5 * a);
_2 = 1000 * (1 + 2 * b) * (1 + f) * (1 + f) * (1 + f);
_3 = 1000 * (1 + 3 * c) * (1 + f) * (1 + f);
_4 = 1000 * (1 + d) * (1 + f) * (1 + f) * (1 + f) * (1 + f);
_5 = 1000 * pow(1.0 + f / 4.0,20.0);
printf("(1) = %lf\n",_1);
printf("(2) = %lf\n",_2);
printf("(3) = %lf\n",_3);
printf("(4) = %lf\n",_4);
printf("(5) = %lf\n",_5);
return 0;
}