#include <stdio.h>
#include <math.h>
#define YEAR 5
#define MONTHS 12
int main()
{
double rate; //读入月利率,double型
double capital; //每年年底预期取出的存款
double x,y;
printf("请输入月利率和每年年底预期取出的存款:\n");
scanf("%lf%%,%lf",&rate,&capital);
y=pow(1+rate/100,MONTHS);
x=(x+capital)/y;
x=(x+capital)/y;
x=(x+capital)/y;
x=(x+capital)/y;
x=(x+capital)/y;
printf("At the first of the first year, you need deposit:%.2lf",x);
return 0;
}