Consider the following code fragment. Without changing the loop type, modify the code as follows. Incorporate an if statement in the loop body to prevent printout when the input equals the sentinel value of zero.
int x;do{x = stdIn.nextInt();System.out.println("square = " + (x * x)); } while (x != 0);
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.