复利即是指利滚知利
如存入1000,年利息回0.003,存了答10年,则调用fl(0.003,1000,10);
double fl(double rate,double cash,int times) { double ret = 0; for (int i = 1; i <= times;i++ ) { ret += Math.Pow((1 + rate), i); } ret *= cash; return ret; }