Problems
easySum of First N Natural Numbers
2 Koda Coins

Sum of First N Natural Numbers

easy2s limit💾 64 MB

Description

Given an integer N, compute the sum of the first N natural numbers.


Input Format

  • A single integer N.

  • Output Format

  • Print the sum.

  • Constraints

  • 1 <= N <= 10^5