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


LÀM BÀI

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

Author:
Problem type

Tính tổng sau: Sn = 2 + 4 + 6 + 8 + … + 2*n.

Input Format

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

Constraints

.

Output Format

Số nguyên dương n. ( 1 ≤ n ≤ 109).

Ví dụ:

Dữ liệu vào
3
Dữ liệu ra
12

Comments

There are no comments at the moment.

Zalo