This code should print the sum 1+2+...+n but has a bug. Fix it and output the correct sum. Read n from stdin.
How checking works
Your code runs remotely with each test's input on stdin. Output is compared to the expected answer. All tests must pass on submit to earn XP.