请问一个关于存款的算法有关问题

请教一个关于存款的算法问题.
每月存入200元,年利率为0.011,40年后连本带利一共有多少钱?
注:每月存入200元,40年不间断的存.
麻烦那位高手用C语言描述一下,谢谢了~~

------解决方案--------------------
#include <iostream.h>

//程序开始;
void main()
{
double interest, balance=0;
const double target=200.00;
cout < < "请输入年利息: ";
cin> > interest;
interest /= 12;
cout < < "月利息为: " < <interest < <endl;
for(int i=1; i <=40; i++)
{
for(int j=1; j <=12; j++)
{
balance += target;
balance *= (1+interest);//利滚利计算;
}
}
cout < < "四十年后你的结余为: " < <balance < <endl;
cout < < "本金为: " < <40*12*200 < <endl;
cout < < "赚的钱为: " < <balance-40*12*200 < <endl;
}