Answer:
The value of sum is 66
Step-by-step explanation:
i = 1
sum = 0
while (i <= 11) {
sum = sum + i;
i++;
}
i = 1
- sum = sum + i
- sum = 0 + 1
- sum = 1
i = 2
i = 3
i = 4
i = 5
i = 6
i = 7
i = 8
i = 9
i = 10
i = 11
i = 12 --> does not comply with the condition "i < = 11", the while loop is over