Computer Science, asked by iralara, 5 hours ago

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 aiswarya1155
0

Answer:

It's actually 6.25... Are the options correct?

Answered by raghav877
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