write a c + + program that displays the following menu

write a c + + program that displays the following menu
press 1 to find sum, average and product
press 2 to find min and max
press 3 to exit the program
and performs the following tasks
A. If you press number 1 the program accepts four integers from the keyboard. checks whether the numbers are greater than 0 and finds their product, average and sum. The program should repeat the same task if you press the letter 'S' otherwise the program returns to the menu.
B. If you press 2 the program should accept two numbers from the keyboard, compares them and displays the minimum and maximum number.
C. If you press 3 the program terminates
Topic archived. No new replies allowed.