Limited access

Upgrade to access all content for this subject

Consider the following code segment.

System.out.println(9/2.0+15/6+5.0/2);

What is printed as a result of executing the code segment?

A

8

B

8.0

C

9

D

9.0

E

9.5

Select an assignment template