Compound interest by idesaku (kaigi)

a,b,c=gets.split(/:/).map{|s|s.to_i}
a.times{puts b
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