What value will the function:- Math.round(Math.pow(2.5 , 2)) return?
(a) 5.0
(b) 5
(c) 6.0
(d) 6
Answers
Answered by
0
Answer:
It's actually 6.25... Are the options correct?
Answered by
0
Answer:
6
Explanation:
Math.round(Math.pow(2.5,2))
= Math.round(6.25). [ 2.5²]
= 6 ( Because return type of math.round is int)
therefore 6
Similar questions