Computer Science, asked by fazlur19, 6 months ago

Give output of the following program segment: [2]

double x= -3.6 , y=3;

System.out.println(Math.min(Math.floor(x),y));

System.out.println(Math.max(Math.ceil(x),y));​

Answers

Answered by kabaddi836
1

Answer:

If the argument is positive or negative double value, this method will return the ceil value.

If the argument is NaN, this method will return same argument.

If the argument is Infinity, this method will return Infinity with the same sign as the argument.

If the argument is positive or negative Zero, this method will return Zero with same sign as the argument.

If the argument is less than Zero but greater than -1.0, this method will return Negative Zero as output.

Explanation:

MAKE ME BRAINLIEST ❤️❤️❤️ FOLLOW ME ❤️❤️❤️

Answered by ranimangar979
1

Answer:

upper answers are right

Explanation:

plz mark me as brainliest

Similar questions