| 
 | 
 
 
发表于 2020-5-24 17:56:49
|
显示全部楼层
 
 
 
0.100次 
 
1。11次 
 
2。a,b,c 
 
3. 
 
4。 
 
动手 
 
0。 
 
#include <stdio.h> 
 
#include <math.h> 
 
int main() 
 
{ 
 
int year = 1; 
 
int cost = 10000; 
 
float d_interest=0.1; 
 
float f_interest=0.05; 
 
float d_total = 10000; 
 
float f_total = 10000; 
 
while(d_total>= f_total) 
 
{ 
 
d_total = cost * (1+d_interest*year); 
 
f_total = (pow((1+f_interest),year))*cost; 
 
printf("第%d年,单利:%.2f,复利:%.2f\n",year,d_total,f_total); 
 
year = year+1; 
 
} 
 
return 0; 
 
} 
 
1。 
 
#include <stdio.h> 
 
#include <math.h> 
 
int main() 
 
{ 
 
int year = 1; 
 
float capital = 4000000;//本金 
 
float interest=0.08; //利息 
 
int expence = 500000;//每年支出 
 
while(capital>expence) 
 
{ 
 
capital = capital*(1+interest)-expence; 
 
printf("%d年后,资产:%.2f\n",year,capital); 
 
year = year+1; 
 
} 
 
return 0; 
 
} 
 
3。2的24次方 |   
 
 
 
 |