What is the output of the following code?
import java.lang. Math.*;
class Main
{
public static void main(String args[])
{
System.out.println(Math.round(-7.5));
System.out.println(Math.abs (-7.5));
System.out.println(Math.ceil(-7.5));
System.out.println(Math.floor(-7.5));
}
}
a. -7 7.5 -7.0 -8.0
b. -8 7.5 -7.0 -8.0
c. -8 -7 -8.0 -7.0
d. -7 7-7.0 -8.0
Answers
Answered by
3
Answer:
.a)-7 7.5 -7.0 -8.0
Answered by
1
Answer:
A is correct answer , Hope it helps !!
Similar questions