Ask Question
15 September, 23:55

For each of the following while loops, how many times will the loop execute its body? Remember that "zero," "infinity," and "unknown" are legal answers. a) int x = 1; while (x < 100) { System. out. print (x + " "); x + = 10; } b) int max = 10; while (max < 10) { System. out. println ("count down: " + max); max--; } c) int x = 250; while (x % 3! = 0) { System. out. println (x); } d) int x = 2; while (x < 200) { System. out. print (x + " "); x * = x; } e) String word = "a"; while (word. length () 0) { System. out. println (x / 10); x = x / 2; }

+3
Answers (1)
  1. 16 September, 00:34
    0
    a. 10 b. infinity c. infinity d. 3 e. 5 f. 7
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “For each of the following while loops, how many times will the loop execute its body? Remember that "zero," "infinity," and "unknown" are ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers