Problem Statement
Write a C program to calculate the average of elements in a 1D array. Input the size n, read n integers, calculate the sum, and then divide by n to find the average. Display the average formatted to 2 decimal places.
Example
Input:
5 10 20 30 40 50
Output:
30.00