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
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