Task Many Times Hello Printed Running Following Code Int X 3 X 20 Systemprintln Hello X 2 Q43842879
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; Show transcribed image text TASK: How many times will “hello” be printed after running the following code? int x = 3; while(x
Expert Answer
Answer to TASK: How many times will “hello” be printed after running the following code? int x = 3; while(x < 20) { System.out.pri...
OR