How Debugging Works
Debugging means tracing a program's execution line by line, watching how variables change, to find a bug. A tool called a debugger lets you pause execution and check exactly which line is running and what each variable currently holds.
In this program, what's sum right after line 3 runs?