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

What is the output of the following Java code? int num = 15; while (num > 0) num = num – 3; System.out.println(num);
A) 0
C) 12
B) 3
D) 15

Leave a Reply

Your email address will not be published.