Compound interest by hajimehoshi (kaigi)

eval"t,a,r=#{gets};t.times{p a=a.to_i;a*=1+r/1e2}".gsub":",","

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

download

return to the top page