Compound interest by nanki

n,i,r=$<.read.split(':').map{|v|v.to_i};n.times{p i;i*=1+r/1e2;i=i.to_i}\x0d

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

download

return to the top page