Computer Science, asked by mariyasibi10, 3 months ago

3. Predict output of the following:
(i) Math.pow(2,5)+Math.ceil(4.2)
(ii) Math.round ( 14.7) + Math.floor ( 7.9)​

Answers

Answered by karnikanarang
3

Answer:

i)37

ii)21

Explanation:

In first question function math.pow will return 32 as 2x2x2x2x2=32 and Math.ceil function will return the next figure that is 5. hence 32+5=37

ii) math.round function will return the round off value of the number that is 15...math.floor function will return the previous value of number that is 6....hence, 15+6=21.

hope it helps.

Similar questions