✏️

Sum of 1 to N

Easy🏷️ Loops📂 Loops
🧩 The problem

TAKE N and DISPLAY the sum 1 + 2 + … + N.

Examples

  • Input: 5 → 15

✏️ Write your pseudocode

Press Run to watch it step by step, and Run tests to check it against every test case.

← All practice problems