Compound interest by matarillo

using C=System.Console;class P{static void Main(){string[] s=C.ReadLine().Split(':');int v=int.Parse(s[1]);int p=int.Parse(s[2]);for(int i=int.Parse(s[0]);i-->0;v+=v*p/100)C.WriteLine(v);}}

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

download

return to the top page