Computer Science, asked by tsumisaron, 1 year ago

write down the syntax for the following functions in Java programming to find the absolute value of a number

Answers

Answered by pearltechid
9

java.lang.Maths.abs() is the syntax for finding the absolute value of a number in Java program

Answered by Anonymous
2

Syntax:-

<Return Data type><variable> = Function name (number);

e.g.:

int n = Math.abs(3); \\it returns an integer value to n as 3.

Similar questions