TONGN


Submit solution

Points: 50
Time limit: 1.0s
Memory limit: 512M

Problem type

Cho số nguyên \(n\).

Yêu cầu: Tính và in ra tổng \(1+2+3+⋯+n. \)

Input

  • Gồm một dòng ghi số nguyên \(n (1≤n≤10^9).\)

Output

  • Gồm một dòng ghi một số là tổng tìm được.

Sample Input

4

Sample Output

10

Comments

There are no comments at the moment.