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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:30
Ineed on my history if anyone can check out the last few questions i posted and i will be posting !
Answers: 2
question
Computers and Technology, 21.06.2019 21:00
The mode is generally used when delivering a presentation to an need now
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
What is outfitting a workplace with video in a technology
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What is used to analyze and summarize your data without graphical support
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
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Chemistry, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
History, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Biology, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
English, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Social Studies, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
Questions on the website: 13722359