Computer Science, asked by sirshendumaity2006, 7 months ago

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

Answer:

what do we find in this question

Answered by EthicalElite
34

\large\color{navy}{\huge✯}{\mid{\boxed{\mathbb{Answer}\mid}}\color{navy}{\huge✯}}

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