What is the output of the following Java code?int num = 15;while (num > 0)      num = num - 3;System.out.println(num);

A. 0
B. 3
C. 12
D. 15

Answer: A

Computer Science & Information Technology

You might also like to view...

Which of the following is a correct Ethernet MAC address?

A. 12:7H:45:89:9F:65 B. 16-15-4D-31-59-5J C. 11:34:7A:88:0C:DB D. 12-88-FF-9X-58-9E

Computer Science & Information Technology

Display a message reporting the acidity of a liquid based on the input color of the liquid

What will be an ideal response?

Computer Science & Information Technology