You will be given an integer x. The absolute value of x will be within 100. You have to add 1 to x's absolute value and print the result.
The input contains a single integer x. The absolute value of x will be within 100.
For 50 points, the given numbers will be non-negative.
Output the result for the given x.
According to Wikipedia, “In mathematics, the absolute value or modulus |x| of a real number x is the non-negative value of x without regard to its sign. Namely, |x| = x for a positive x, |x| = -x for a negative x (in which case -x is positive).”
Login to submit