Compound interest by moro(kaigi)

t,i,c=gets.split(":").map{|v|v.to_i}\x0d
t.times{p i;i=(i*(1e2+c)/100).floor}\x0d

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

download

return to the top page