Give the output of the following program segment:
double x = 2.9, y = 2.5;
System.out.println(Math.min(Math.floor(x),y));
System.out.println(Math.max(Math.ceil(x),y));
Answers
Answered by
2
Answer:
(a) Primitive data type: int
Composite data type: Class
Similar questions