Answer:
sum = 0 must be before for loop. If inside for loop, it will keep resetting sum to 0 each iteration.
Step-by-step explanation:
hope this helps
9.5m questions
12.2m answers