Question: Write a C program that reads five integers. The program should find the max, the min and the average of these five inputs (displayed

Write a C program that reads five integers. The program should find

Write a C program that reads five integers. The program should find the max, the min and the average of these five inputs (displayed with one decimal point format, i.e., 23.6. Hint: using %.1f). Write the repetition code for three types of looping: while, do... while and for. Output example: Enter number 1: 26 Enter number 2: 14 Enter number 3: 79 Enter number 4: 53 Enter number 5: 37 Max value: 79 Min value: 14 Average: 41.8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer code is as follow include stdio h int main int num max min sum i Using while loop printf... View full answer

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 Programming Questions!