double x=2.9; double y=2.5; x=Math.min(math.floor(x), y) ; y= math. max(Math.ceil(x), y) ;
Answers
Answered by
1
Answer:
what do we find in this question
Answered by
34
double x=2.9, double y=2.5;
x=Math.min(math.floor(x), y);
y= math. max(Math.ceil(x), y);
⠀ ⠀⠀ ⠀ ⠀⠀ ⠀
◍ Math.min(math.floor(x),y)
= Math.min(2.0,2.5)
= 2.0
◍ Math.max(Math.ceil(x), y)
= Math.max(3.0,2.5)
= 3.0
⠀ ⠀⠀ ⠀ ⠀⠀ ⠀
So, Output will be:-
2.0
3.0
Similar questions