Computers and Technology

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() < 10) { word = "b" + word + "b"; } system. out. println(word); f) int x = 100; while (x > 0) { system. out. println(x / 10); x = x / 2; }

answer
Answers: 2

Similar questions

Do you know the correct answer?
For each of the following while loops, how many times will the loop execute its body? remember that...

Questions in other subjects:

Konu
Social Studies, 27.08.2019 02:00
Konu
Social Studies, 27.08.2019 02:00