Compound interest by kdmsnr

a,r,c=STDIN.gets.split /:/;a.to_i.times{|i|r=(r*(1+c.to_f/100)).to_i;puts r}

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

download

return top