存款利息的源代码
帮帮忙,谁能给我一个存款利息的源代码,谢谢了!!!!
2010-03-12 11:13
程序代码:long x = 100;//本金
long n = 0.02 //利息
for(int i =0;i<12;i++)//12个月
{
x += x * n;
}
2010-03-12 11:41
2010-03-13 10:47
2010-03-14 13:40