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, 23.06.2019 00:30
Which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
*! 20 points! *jeff wants to create a website with interactive and dynamic content. which programming language will he use? a. dhtml b. html c. css d. javascript
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
3. what do the terms multipotentialite, polymath, or scanner mean?
Answers: 2
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
Mathematics, 27.07.2021 08:30
question
Computers and Technology, 27.07.2021 08:30
Questions on the website: 13722360