subject

Write an expression that executes the loop while the user enters a number greater than or equal to 0.

note: these activities may test code with different test values. this activity will perform three tests, with usernum initially 9 and user input of 5, 2, -1, then with usernum initially 0 and user input of -17, then with usernum initially -1. see "how to use zybooks".

also note: if the submitted code has an infinite loop, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.

#include
using namespace std;

int main() {
int usernum;

usernum = 9;

while (/* your solution goes here */) {
cout < < "body" < < endl;
cin > > usernum;
}
cout < < "done." < < endl;

return 0;
}

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:40, genyjoannerubiera
Kali, a python programmer, is using the turtle module to write the word “hello.” which code should she use to indicate the location to begin writing the word? a # pick up the turtle and move it to its starting location. b penup(-100, 200) goto() pendown() c penup() goto(-100, 200) pendown() d # pick up the turtle and move it to (-100, 200)
Answers: 2
image
Computers and Technology, 23.06.2019 16:10, alexis9658
What is the ooh? a. omaha occupation handbook b. online occupational c. occupations online d. occupational outlook handbook select the best answer from the choices provided
Answers: 3
image
Computers and Technology, 24.06.2019 17:30, bxbykay1
Looking at the electroscope, describe how you can cause the two leaves at the bottom to repel each other and stay that way
Answers: 3
image
Computers and Technology, 24.06.2019 22:30, juicyx39
In writing a paper for his english class, gavin quoted an author of the book. what should he include in his paper to credit the source? citation caption header entry
Answers: 1
You know the right answer?
Write an expression that executes the loop while the user enters a number greater than or equal to 0...

Questions in other subjects: