小白求问c语言编程题,求大神帮忙
展开全部
#include "stdio.h"
int main(void){
double t;
printf("Case 1(5 years): %g\n",1000*(1+5*0.0585));
printf("Case 2(2-3 years): %g\n",(1000*(1+2*0.0468))*(1+3*0.054));
printf("Case 3(3-2 years): %g\n",(1000*(1+3*0.054))*(1+2*0.0468));
printf("Case 4(1 year 5 times): %g\n",1000*(t=(1+0.0414))*t*t*t*t);
t=(1+0.0072/4),t=t*t*t*t*t;
printf("Case 5(Demand deposits): %g\n",1000*t*t*t*t);
return 0;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询