Java Bài 3.A1: Tổng số tự nhiên.


LÀM BÀI

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

Author:
Problem type

Tính tổng S(n) = 1 + 2 + 3 + ... + n

Input Format

Số nguyên dương N.(1≤N≤10^6)

Constraints

.

Output Format

Kết quả S(n).

Ví dụ:

Dữ liệu vào
5
Dữ liệu ra
15

Comments

There are no comments at the moment.

Zalo