Computer Science, asked by tnjkamalya2007, 2 months ago

Predict the output of the following :

i) Math.sqrt(-36); ii) Math.pow(-4,3);​

Answers

Answered by pihunegi
4

Answer:

1)√-36

=> -6

2) m/3*(Math.pow(4,3))

⇒ float / int * double

[∵Math.pow returns double]

⇒ float * double

⇒ double

So the return data type of this expression is double

Similar questions