Compound interest by sample

a,b,c=gets.chomp.split(':')\x0d
puts b=b.to_i\x0d
2.upto(a.to_i){puts b+=(b*(c.to_f/100)).to_i}\x0d
\x0d

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

download

return top