-->
当前位置:首页 > 题库

单选题:What will be output by the following line?

Luz5年前 (2021-05-10)题库574
What will be output by the following line?@[D](2)
```Java
System.out.println(Math.floor(-2.1));
```

A. -2
B. 2.0
C. -3
D. -3.0




A.-2
B.2.0
C.-3
D.-3.0


答案:D