Question: CH - 5 write this c program using while loop REPETITION AND LOOP STATEMENTS - I EXERCISE 5 - 7 Write a program which gets

CH-5
write this c program using while loop
REPETITION AND LOOP STATEMENTS - I
EXERCISE 5-7 Write a program which gets 5 integer numbers, computes and displays the total and average of the squares. The average shall be displayed with two decimal digits after the decimal point. Use while loop.
Sample run:
Enter an integer number: 4
Enter an integer number: 2
Enter an integer number: 1
Enter an integer number: -5
Enter an integer number: 2
Total of the squares: 50
Average of the squares: 10.00
Modify your program to compute the total and the average for 20 numbers.
CH - 5 write this c program using while loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!