# Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

# Absolute U

By sakibalamin · Limits 1s, 512 MB

Do you know about absolute value function?
In mathematics, the absolute value of a real number $u$, denoted $|u|$, is the non-negative value of u without regard to its sign. Namely, $|u| = u$ if $u$ is positive, and $|u| = -u$ if $u$ is negative, and $|0| = 0$. For example, the absolute value of 3 is 3, and the absolute value of -3 is also 3.

Given an integer u, you have to output the value of $|u|$.

## Input

First line contains a positive integer $T$ ($1 \le T \le 100$ ), which is the number of test cases. Then $T$ cases follow, each having a single integer $u$ ($-100000 \le u \le 100000$).

## Output

Output a single integer, which is $|u|$ (the absolute value of $u$).

## Sample

InputOutput
3
12
-5
24

12
5
24


• Math

### Statistics

97% Solution Ratio

FairoozREarliest, Jun '20

FairoozRFastest, 0.0s

FairoozRLightest, 0 B

bokaifShortest, 38B

### Submit 