Sum is essentially 1+2+3+4+5+6+7+8+9+10 = 55 (for each pass through the loop: 0+0, 0+1, 1+2, 3+3, 6+4, 10+5, etc....), and the final setting for 'number' is 10+1 = 11.