Computer Science, asked by ritensingh50, 6 months ago

What will be the output of the following code?

i) double x=-9.99;

System.out.println(Math.sqrt(36) + Math.ceil(x));​

Answers

Answered by Oreki
1

Answer:

-3

Explanation:

As, Math.sqrt(36) returns 6.0 and,

Math.ceil(-9.99) returns -9.0,

So, 6.0 + (-9.0) = -3.0

Similar questions