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
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
Accountancy,
4 months ago
English,
4 months ago
English,
4 months ago
Science,
8 months ago
English,
8 months ago