Problem2608--数字求和

2608: 数字求和

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 96  Solved: 87
[Status] [Submit] [Creator:]

Description

给定一个整数 n(2 ≤ n ≤ 100 且 n 为偶数)。求 1 × 2 + 3 × 4 + …… + (n-1) × n 的结果。  

Input

一个整数 n(2 ≤ n ≤ 100 且 n 为偶数)

Output

输出一个整数,表示 1 × 2 + 3 × 4 + …… + (n-1) × n 的结果。  

Sample Input Copy

6

Sample Output Copy

44

HINT

1 × 2 + 3 × 4 + 5 × 6 = 44。

Source/Category