Java Bài 1.A8: Tính tổng 1.


LÀM BÀI

Points: 10 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

Sn = 1 + 2 + 3 + 4 + … + n.

Input Format

Số nguyên không âm n.

Constraints

( 0 ≤ n ≤ 10^8).

Output Format

Kết quả của bài toán.

Ví dụ:

Dữ liệu vào
7
Dữ liệu ra
28

Comments

There are no comments at the moment.

Zalo