Compound interest by thata

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

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

download

return top