Compound interest by gunjisatoshi (kaigi)

a,b,c=$<.read.split(':').map &:to_i\x0d
1.upto(a){p b;b=(b*(1+c*0.01)).floor}

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

download

return to the top page