educative.io

Why is sum2 = 5 and not 4 in question 3

rationale: the loop breaks with i=15, which means that the number i=15 does not reach sum2, as such sum2 has only the range range 0…14;

Thanks a lot :slight_smile: