Tính tổng

View as PDF

Points: 100 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Tính tổng các số liên tiếp từ 1 đến \(n\).

Input

  • Một số nguyên dương \(n \leq 10^9\)

Output

  • Kết quả bài toán.

Example

Test 1
Input
3
Output
6
Test 2
Input
5
Output
15

Comments

There are no comments at the moment.