#include <stdio.h>
#define MAX 10
int main(void)
{
int n;
double sum = 1300000000.0;
printf("new = %lf\n", sum);
for(n = 0; n < 10; n++)
{
sum = sum + sum * 0.02;
}
printf("10 year = %lf\n", sum);
return 0;
}
------------ 郁闷 ---------
[[it] 本帖最后由 cosdos 于 2008-6-20 01:39 编辑 [/it]]
[[it] 本帖最后由 cosdos 于 2008-6-20 01:40 编辑 [/it]]