Program to calculate the average temperature for the given temperatures
Given a list of temperatures on different days, the task is to calculate the average temperature for the given temperatures. Examples: Input: n = 7, temperatures[] = {40, 42, 44 ,40, 39, 46, 45}Output: 42.2857 Explanation: The sum of temperatures is 296 so the average is 296/7 = 42.2857. Input : n =