You are given a list of numbers, and your task is to calculate the average of these numbers.
The average is defined as the sum of the numbers divided by the total number of elements. Make sure to output the result with two decimal places of precision.
The first line contains a single integer T, the number of test cases.
For each test case:
The first line contains an integer N, the number of elements in the list.
The second line contains N space-separated integers, the elements of the list.
For each test case, print the average of the numbers, formatted to two decimal places.
1 <= T <= 100
1 <= N <= 1000
-10000 <= Each number <= 10000
| Example Input | Example Output |
|---|---|
2 5 1 2 3 4 5 3 10 20 30 |
3.00 20.00 |