1084: [循环初步]自然数中奇数和

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:305 Solved:3

Description

试题描述

  计算并输出:(n为奇数)
   1+3+5+7+...+n

Input

n

Output

 1+3+5+7+...+n的和

Sample Input Copy

3

Sample Output Copy

4

Source/Category