Find average of maximum of n positive numbers entered by user
Find average of maximum of n positive numbers entered by user. But if the input is negative, display the average (excluding the average of negative input) and end the program.
Input:
5
-2 -3 -1 5 5
Output:
The average of 2 positive numbers is 5.000000
Implementation: