Question: Write a C++ program that takes n positive numbers as input, and find the maximum value, minimum value, and the average value. The value of
Write a C++ program that takes n positive numbers as input, and find the maximum value, minimum value, and the average value. The value of n is given by user.
It should skip the negative numbers. If a negative number is entered, the program should ask for a positive number instead of that. You need to use a dynamic array to save all positive numbers.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
