Tổng lẻ

View as PDF



Problem types
Points: 100 Time limit: 1.0s Memory limit: 640M Input: stdin Output: stdout

Viết chương trình nhập vào một số nguyên dương \(n\). Hãy in ra tổng các số lẻ trong \(n\) số tự nhiên đầu tiên.

Input

  • Một số nguyên dương \(n\).

Output

  • In tổng lẻ của \(n\) số tự nhiên đầu tiên.

Example

Test 1

Input
5
Output
9

Test 1

Input
10
Output
25

Comments

There are no comments at the moment.