c = 1, sum = 0
(The loop runs)
1 < 10, c = 1 + 2, sum = 0 + 3
c = 3, sum = 3
3 > 10, c = 3 + 2, sum = 3 + 5
c = 5, sum = 8
5 > 10, c = 5 + 2, sum = 8 + 7
c = 7, sum = 15
7 > 10, c = 7 + 2, sum = 15 + 9
c = 9, sum = 24
9 > 10, c = 9 + 2, sum = 24 + 11
c = 11, sum = 35
(The condition is false and the loop ends)
11 > 10, print sum