Task 5 of 7
Find the bug
This program should read a whole number n and print the sum of the whole numbers from 1 to n. It prints the wrong total. Tap the line at fault, then choose a fix.
Tips
- Compare what the program printed with what it should print.
- Follow the program with the test's input until it first goes wrong.