Compound interest by test

a,b,c=gets.split(":")\x0d
p n=b.to_i\x0d
(a.to_i-1).times{p n+=n*c.to_i/100}

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

download

return to the top page