Simple Question#1464

Simple Question

1 segundo
128 megabytes
Fácil (≈1000)

Given an integer , calculate the sum of all integers from to (inclusive).

Entrada

Each line contains a single integer (|n| \leq 10000). The last line contains and should not be processed.

Salida

For each value of , print the answer on a separate line.

Ejemplos

Ejemplo 1

Loading
Loading