Compound interest by kawabata

input = $stdin.gets.split(':');result = [] << input[1].to_i;input[0].to_i.times {|i| result << (result[i] * (Float(input[2].to_i + 100) / 100)).to_i; p result[i]}

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

download

return top