Compound interest by YaSuYuKi (kaigi)

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

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

download

return to the top page