Computer Science, asked by padiyar535, 7 months ago

Write the output of the following program segment.
System.out.println(Math.ceil(5.2));
System.out.println(Math.floor(5.9));

Answers

Answered by Liyutsararename
3

Answer:

System.out.println(Math.ceil(5.2));

System.out.println(Math.floor(5.9));

output :

5.0 (it rounds decreases)

6.0 (it rounds exceeds)

hope it helps!

plz mark me as brainliest!

Explanation:

Similar questions