Question: challenge activity 4.3.4: While loops with numbers. Use cin to read integers from input until -99 is read. For each remaining integer read before -99,

challenge activity

4.3.4: While loops with numbers.

Use cin to read integers from input until -99 is read. For each remaining integer read before -99, if the integer is positive, output the integer followed by a newline and increment countOfSelected.

Ex: If the input is -22 21 4 -99, then the output is:

21 4 Positive integers appear 2 time(s)

#include using namespace std;

int main() { int inputValue; int countOfNegativeFifteen;

/* Your code goes here */

cout

return 0; }

challenge activity 4.3.4: While loops with numbers. Use cin to read integers

445580.2370224.93zqy7 Jump to level 1 Use cin to read integers from input until 999 is read. For each remaining integer read before 999 , if the integer is equal to - 15 , output "-15 appears" followed by a newline and increment countOfNegativeFifteen. Ex: If the input is 15191515 999, then the output is: 15 appears 15 appears 15 appears 3 time(s) 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!