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
Get step-by-step solutions from verified subject matter experts
