逆推法分析,迭代法求解
- List item
存入一笔钱,分五年每年年底取1000刚好取完,已知月息1.875%,求存入的数额
-
List item
-
List item
#include<stdio.h>
#define YEARS 5
#define MONTHS 12
#define CAPITAL 1000
#define RATE 0.01875
int main()
{
int i;
double DEPOSIT=0;
for (i = 0; i < YEARS; i++)
{
DEPOSIT = (DEPOSIT + CAPITAL) / (1 + RATE * MONTHS);
}
printf("He must save%.2f at the first year.\n", DEPOSIT);
getchar();
getchar();
}