Computer Science, asked by adityasahu25jun2007, 8 months ago

How to print |y-5| in java.lang.math?

Answers

Answered by surya5299
2

Answer:

Java Math abs() method with Examples. Last Updated: 10-01-2020. The java.lang.Math.abs() returns the absolute value of a given argument. If the argument is not negative, the argument is returned

Answered by ItzParth14
1

Answer:

\huge\underline\bold\red{AnsWeR}

Description

The java.lang.Math.abs(int a) returns the absolute value of an int value. If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is returned. Note that if the argument is equal to the value of Integer.MIN_VALUE, the most negative representable int value, the result is that same value, which is negative.

Similar questions