#K83262. Total Miles Run

    ID: 36159 Type: Default 1000ms 256MiB

Total Miles Run

Total Miles Run

Rahul starts his training plan by running a certain number of miles each day. On day \(i\), he runs \(i\) miles. The total number of miles run after \(n\) days can be calculated using the formula: \(\frac{n(n+1)}{2}\). Given the number of training days, determine the total number of miles Rahul has run.

inputFormat

The input begins with a single integer \(T\), representing the number of test cases. Each of the following \(T\) lines contains an integer \(D\), denoting the number of training days.

outputFormat

For each test case, output a single line containing the total number of miles run after \(D\) days.

## sample
1
1
1

</p>