Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Sum 1 to N

Read a number N, then print the sum of all numbers from 1 to N.

Example:

Input:

text
5

Output:

text
15

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python