What is the output of the following code?
System.out.println(Math.round(7.5) + Math.floor(2.9));
1 Like
10.0
Reason
Math.round(7.5)
Math.floor(2.9)
double
int
Answered By
3 Likes
The output of the statement Math.ceil.(89.9) + Math.floor(90.5) is:
Math.ceil.(89.9) + Math.floor(90.5)