Computer Science, asked by rachitkothadia98, 7 months ago

double a=-4.5; double b=-5.8;

System.out.println(Math.abs(Math.min(Math.floor(a),Math.

ceil(b))))





if u said this your mother father are greatest

Answers

Answered by anindyaadhikari13
6

Question:-

  • Write the output of the following code.

Steps:-

Given,

double a= -4.5;

double b= -5.8;

Now,

Math.abs(Math.min(Math.floor(a),Math.ceil(b)))

=Math.abs(Math.min(-5.0,-5.0))

=Math.abs(-5.0)

=5.0

Output:-

5.0

Similar questions