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
Let's find answer to your question.
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