Question: What is the output of the following code segment? int num = 1; int counter = 1; while (num < 3) { num num*
What is the output of the following code segment? int num = 1; int counter = 1; while (num < 3) { num num* counter; } counter++; System.out.println(num);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
