Computer Science, asked by monika966, 7 months ago

5. What will be output by this code line ?
System.out.println(Math.floor(-5.1));
(a) -5
(b) -5.0
(C) -6
(d) -6.0
6. What will be output by the following code line ?
System.out.println(Math.ceil(-5.1));
(a) -5
(b) -5.0
(c) -6
(d) -6.0
7. What will be output by the following line ?
System.out.println(Math.abs(-2.1));
(a) -2.0
(b) -2.1
(c) 2.1
(d) 1.0​

Answers

Answered by Anonymous
11

Answer:

5) (d) -6. 0

6) (b) -5. 0

7) (c) 2.1

Answered by Anonymous
2

Answer:

option d)

option a)

option a)

HOPE THIS WILL HELPS U......BE HAPPY......

Similar questions
Math, 3 months ago