Compound interest by s1061123

a,b,c=gets.split(':').map{|i|i.to_i}\x0d
a.times{p b;b+=b*c/100}

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

download

return top