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, 21.06.2019 21:00, Unicorn66y
If you have a lien on your vehicle, you cannot apply for a duplicate copy of your vehicle’s certificate of title. true or false
Answers: 1
image
Computers and Technology, 21.06.2019 22:00, AshlynPlayz45
Which one of the following would administrators use to connect to a remote server securely for administration? a. telnetb. secure file transfer protocol (sftp)c. secure copy (scp)d. secure shell (ssh)
Answers: 1
image
Computers and Technology, 22.06.2019 01:50, bessieyounger1211
Click on this link toopens a new window. bring up a flowchart in a new browser window. based on this flowchart, would a d-link 3347 gateway with an xbox 360 multiplayer problem be in scope or out of scope
Answers: 2
image
Computers and Technology, 22.06.2019 19:20, mahaleyrenee1195
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 2
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:

Konu
Mathematics, 29.12.2019 05:31
Konu
English, 29.12.2019 05:31