Write a program which reads up to 365 temperatures from a file redirected from standard input and prints the yearly average temperature.
? AverageTemp : MaSH console [5 marks]
Write a program which reads up to 365 temperatures from a file redirected from standard input and prints the yearly average temperature. The file contains floating point values and there are no blank lines in the file.
The temperature data file has been fixed. It now has 365 values (instead of 356)
$ build AverageTemp
Attachments: