Compound interest by 51b

main(n,x,r){for(scanf("%d:%d:%d",&n,&x,&r);n--;x=(100+r)*x/100)printf("%d\n",x);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page