Sum to N
Easy📝 Description
Calculate the sum of all numbers from 1 to n
Input Format
A single integer n
Output Format
Sum of numbers
Constraints
1 ≤ n ≤ 10000
🔍 Sample Input
10
✅ Sample Output
55
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run