Computer Science, asked by raisirtika, 2 months ago

(b) Give the output of the following Math functions:
(1) Math.rint(Math.max(-4.7-4.6));
(2) Math.min(Math.ceil(-8.4), Math.cbrt(27));​

Answers

Answered by amrapalidas1967
0

Answer:

1) -5

2) -8

Explanation:

1) because maximum between -4.7 and -4.6 is -4.6 and rint of -4.6=-5

2)ceil -8.4=-8 and cbrt 27=3 minumum number is -8

Answered by jothlapurempcgtbc
0

Math.rint() - returns roundoff value of the number

Math.max() - returns maximum between two numbers

Math.cbrt() - returns whole number greater than or equal to the number by rounding up

Math.min() - returns minimum number between two y

Attachments:
Similar questions