Compound interest by no6v

t,b,c=gets.split(":").map(&:to_i)
t.times{p b;b=(b*(1+c/1e2)).to_i}

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

download

return to the top page