Computer Science, asked by aswinibehera1971, 5 months ago

math.sqrt (math.min(math.abs (-49),math.abs (-81))​

Answers

Answered by anindyaadhikari13
4

Question:-

Evaluate the following expression in Java.

Solution:-

Math.sqrt(Math.min(Math.abs(-49),Math.abs(-81)))

=Math.sqrt(Math.min(49,81))

=Math.sqrt(49)

=7.0

Hence, the required value is 7.0

Note:-

  • Math.sqrt() function is used to return the square root of a positive number.
  • Math.min() function is used to return the minimum value among two numbers.
  • Math.abs() function returns the absolute value of the number i.e., the magnitude of the number irrespective of its sign.
Similar questions