Write a program that does the following. Ask the user to enter 10 positive integer values from the keyboard. Also in your program, you need to calculate the average of the input values that are not...


Write a program that does the following.



  1. Ask the user to enter 10 positive integer values from the keyboard.

  2. Also in your program, you need to calculate the average of the input values that are not negative. For example, if the entered numbers are : 2  -4  -7  3  -1  -8  5  6  10  -3, then the average = (2+3+5+6+10)/5.

  3. Then display the result on the output screen.



Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here