#P147. 练24.2 for循环求和

练24.2 for循环求和

Description

Using a for loop, calculate and output the sum of 1+2+3+...+n1+2+3+...+n.

Input Format

Input n. For 100% of the data, 1n1001≤n≤100.

Output Format

The sum as described above.

Sample

10
55