Java Bài 3.A7: Tổng lẻ.


LÀM BÀI

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

Author:
Problem type

Nhập vào n nguyên dương không qua 10^6, tính và in tổng sau ra màn hình. S=1+3+5+7+.....+2*n-1.

Input Format

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

Constraints

.

Output Format

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

Ví dụ:

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

Comments

There are no comments at the moment.

Zalo