Computer Science, asked by Deepeshmunna, 4 months ago

Give the output of the following:
(i) Math.pow (36,0.5) + Math.cbrt (125)
(ii) Math.ceil (4.2) + Math.floor (7.9)​

Answers

Answered by atrs7391
7

Answer:

(i) Math.pow (36,0.5) + Math.cbrt (125) = 11.0

(ii) Math.ceil (4.2) + Math.floor (7.9)​ = 12.0


Deepeshmunna: thx mate
atrs7391: welcome friend
anindyaadhikari13: Show steps.
Answered by qwstoke
0

(i) Math.pow(36, 0.5) + Math.cbrt(125)

First, Math.pow(36, 0.5) calculates the square root of 36, which is 6. Then, Math.cbrt(125) calculates the cube root of 125, which is 5. So the expression becomes:

6 + 5 = 11

Therefore, the output of the expression is 11.

(ii) Math.ceil(4.2) + Math.floor(7.9)

Math.ceil(4.2) rounds up 4.2 to the nearest integer, which is 5. Math.floor(7.9) rounds down 7.9 to the nearest integer, which is 7. So the expression becomes:

5 + 7 = 12

Therefore, the output of the expression is 12.

#SPJ3

Similar questions