Question: Exercise 3 Write a program that asks the user for entering certain values, until he / she ends the program by entering - 1 .
Exercise
Write a program that asks the user for entering certain values, until heshe ends the program by entering When the user finishes entering the numbers, the program should display the number of entered numbers, their sum, average and the maximum.
Sample run:
Enter a value to end program:
Enter a value to end program :
Enter a value to end program:
Enter a value to end program:
You entered values
Their sum is:
Their average is
The highest number is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
