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, 22.06.2019 07:00
Idon understand these and need some ! ?
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible.restrictions: branches or loops should not be used. the code must use the internal mod and logical functions.hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible.this is matlab
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
question
Computers and Technology, 25.06.2019 09:50
The mips architecture has a register set that consists of 32-bit registers. is it possible to design a computer architecture without a register set? if so, briefly describe the architecture, including the instruction set. what are advantages and disadvantages of this architecture over the mips architecture?
Answers: 3
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, 03.12.2021 14:00
question
Mathematics, 03.12.2021 14:00
question
Health, 03.12.2021 14:00
Questions on the website: 13722359