Computer Science, asked by varun7436, 6 days ago

(d) Write the output of the following statement: System.out.print(Math.ceil(2.58)+Math.floor(2.90));​

Answers

Answered by Mahammadsiraj
0

Answer:

Math.rint(-9.4) will give -9.0 as it is nearest integer to -9.4. Math.sqrt(9.0) will give 3.0. So, output will be -9.0 + 3.0 = -6.0

Similar questions