initial[i] += ((initial[i - 1]* 0.05) + initial[i - 1]);
|
|
Also initial[i] += ((initial[i - 1]* 0.05) + initial[i - 1]); shouldn't it equal to 0, on the first loop, why is it evaluated to 100? |
initial[i] = initial[i] + ((initial[i - 1]* 0.05) + initial[i - 1]);