Do you know about absolute value function?
In mathematics, the absolute value of a real number , denoted , is the non-negative value of u without regard to its sign. Namely, if is positive, and if is negative, and . 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 .
First line contains a positive integer ( ), which is the number of test cases. Then cases follow, each having a single integer ().
Output a single integer, which is (the absolute value of ).
Input | Output |
---|---|
3 12 -5 24 | 12 5 24 |