For each set of following statements, indicate the number of times the statement System, out .print (“x”) ; is executed. If it is an infinite loop, indicate so.
a. x = 12; while (x > 0){ System.out.print(“x”); x = x - 2; } // end while | b. x = 3; do{ System.out.print(“x”);x--; }while(x<0); |
C. x=5; while (x<0){ System.out.print(“x”); } //end while | d. x = 3; do { System.out.print(“x”); x = x + 2; } while (x ⇐ 9); |
e. for (i = 0; i >= 99; i++) System.out.print(“x”); | f. for (i = 84; i ⇐ 96; i++) for (j = 7; j<10; j++) System.out.printIn(“x”); |
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.