Question: (2) (4 Points) What is printed on the screen when the following code is executed? Briefly show your work. int x = 20; int

(2) (4 Points) What is printed on the screen when the following code is executed? Briefly show your work. int x = 20; int total = 0; while (x >= 1) { if (x % 5 == 0 ) total x = x-1; } total + x%3B "I System.out.println(" X is "+x+" and total is +total);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
