Compound interest by 51b

import std.stdio;void main(){int n,x,r;for(scanf("%d:%d:%d",&n,&x,&r);n--;x+=r*x/100)writefln(x);}

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

download

return to the top page