subject

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; }

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:40
Microsoft introduced active directory with windows 2000. in server 2012, it is in now version 4. what are some new features in the new ad that were not present in windows 2000 ad?
Answers: 1
question
Computers and Technology, 22.06.2019 21:50
Given int variables k and total that have already been declared, use a while loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total. thus your code should put 11 + 22 + 33 + + 4949 + 50*50 into total. use no variables other than k and total.
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior to sending the first ping request
Answers: 1
You know the right answer?
For each of the following while loops, how many times will the loop execute its body? remember that...
Questions
question
Arts, 04.01.2020 00:31
question
Mathematics, 04.01.2020 00:31
Questions on the website: 13722359