Computer Science, asked by harshithbabu39, 6 months ago

Give the output of the following:
System.out.println(Math. ceil (3.4) + Math. floor (- 2.7));

Answers

Answered by irshadshaikh5683
3

Answer:

first follow me then i will give you ur answer.. ....

Answered by sg907038
1

Answer:

output will be 2

Explanation:

because ceil means you have to round of the largest integer so 3.4 will become 4 ,and 2.7 will become 2 as floor means you have to take the first digit before the decimal,

4+-2

=2 Ans

you should be Thankful to me now

and all those who are giving online exams

Similar questions