Menu

[solved] – Question 71577

Write a program which repeatedly reads numbers until the user enters 0. Once 0 is entered, print out the total, count, and average of the numbers. Use an array to store all the numbers. Example of execution:
Enter a number: 4
Enter a number: 5
Enter a number: 9
Enter a number: 0
Total = 18, count = 3, average= 6
answer by using while,for and array if possible

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *