Question: Write a C program that will perform the following: a) Read in 5 separate numbers b) Calculate the average of the 5 numbers c) Find

Write a C program that will perform the following: a) Read in 5 separate numbers b) Calculate the average of the 5 numbers c) Find the smallest (minimum) and largest (maximum) of the 5 numbers d) Write out the results found from steps b and c with a message describing what they are. You are required to provide the code with clear comments and notes. You should ensure that inputs are entered correctly and code should display proper error message in case invalid input is entered. You should test your code and provide snapshot of your testing with the following input: a- 100, 200, 50, 20, 2 b- -350, 0, 100, 200, 10 c- A1, 200, 300, 400, 500 *Provide the code as part of your work
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
