#include<stdio.h>
int main()
{
int i;
float total=0;
for(i=0;i<5;i++)
total=(total+1000)/(1+0.01875*12);
printf("He must save %.2f at first.\n",total);
}
运行结果:
#include<stdio.h>
int main()
{
int i;
float total=0;
for(i=0;i<5;i++)
total=(total+1000)/(1+0.01875*12);
printf("He must save %.2f at first.\n",total);
}
运行结果: