Question: Write a C++ function that prompts the user for and reads in integers, stopping when a 0 is entered.The function should return 2 answers: the

Write a C++ function that prompts the user for and reads in integers, stopping when a 0 is entered.The function should return 2 answers: the count of how many positive integers were in the input and the count of how many negative integers were in the input.

Also write a short main function to test the above function. It should call that function and then print the two counts, the two answers.

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!