C-18-Q048mediumsingle_mcq
Inside the loop, the value of sum is updated with the line:
Inside the loop, the value of sum is updated with the line:
- a
sum = count - b
sum = sum + count - c
sum = sum * count - d
sum = sum - count
ব্যাখ্যা
The accumulation step sum = sum + count adds the current counter value to the running total on each iteration. This repeated addition is what builds up the final sum.