Compound interest by ko1 (kaigi)

c,m,r=gets.split(/:/).map{|e|e.to_i};c.times{p m;m+=m*r/100}

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

download

return to the top page