Hello, I'm trying to write a C++ program to read integers until 0 is entered using sentinel. I want the before 0 integers to be read but the 0 not to be and the program to display the results before ending the program.
(1) Display the sum of the two-digit numbers (both positive and negative)
(2) Display the largest of the positive integers
(3) Display the smallest of the negative integers
(4) Display how many numbers are divisible by 7
I'm mainly having trouble figuring out how to enter however many numbers the user wants to enter and then ending it at 0 without the program ending before the results are displayed. The other stuff seems pretty simple. I've been trying this for a few days and had no luck.