Question: java Enter a non-counted list of positive and negative integers. Using a Do While structure, find two separate averages: the average of the positive integers
Enter a non-counted list of positive and negative integers. Using a Do While structure, find two separate averages: the average of the positive integers and the average of the negative integers. Exit the input loop and print the two averages when a 0 is input. Sample Output: Enter integer 1 (0 to exit): 15 Enter integer 2 (0 to exit): -3 Enter integer Average of positives: Average of negatives: (0 to exit): 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
