write down the syntax for the following functions in Java programming to find the absolute value of a number
Answers
Answered by
9
java.lang.Maths.abs() is the syntax for finding the absolute value of a number in Java program
Answered by
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