Question: Write a proper C program that will read numbers from a text file and display the following a) Number of entries read b) The average
Write a proper C program that will read numbers from a text file and display the following
a) Number of entries read
b) The average of all the numbers read
c) The maximum of the numbers read
Example content of the text file 56
23
89
30 Note : The text file can contain any number of entries. The C program should depend onEOF to identify end of file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
