The number of lines read The length of the longest line The length of the shortest line The average line lengthYou should arrange for a line of length zero to terminate your file.
Write a program to read the file using input redirection and calculate the number of input integers in each of the ranges 0-9, 10-19, 20-29 etc., Print out the results of your calculations.