Compound interest by hemge_kinen(kaigi)

a=gets.split(":").map{|f| f.to_i}\x0d
b=a[1]\x0d
a[0].times{|n|\x0d
p b\x0d
b=(b+b*a[2]/100).truncate\x0d
}

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

download

return top