+ 1
Can anyone help with explaining this code?
3 Respuestas
0
Inside 'when',
Change value of i to 6 instead of 5.
That way 15 will be skipped.
0
kev_coding I know I'll have to change i to 6 if I want 15 to be skipped but I'm asking why??
The code skips when i is 5 but looking at the comment in the code, when i is 5, sum is 15 and not 10 so why is 10 skipped?