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
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
Math,
3 months ago
English,
3 months ago
Social Sciences,
7 months ago
Geography,
11 months ago
Geography,
11 months ago