Question: TASK: How many times will hello be printed after running the following code? int x = 3; while(x < 20) { System.out.println(hello); if (x
TASK: How many times will "hello" be printed after running the following code? int x = 3; while(x < 20) { System.out.println("hello"); if (x % 2 == 0) { x += 3; continue; } else { --x; } } if (x % 3 == 0) { } x += 2;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
