Average of N

Task

Write a variadic macro that averages an arbitrary number of N items passed as an input.


Usage: "float avg = AVERAGE(2, 5, 1, 7, 14, 3, 25);"
Output: "avg --> 8.142858"

or

Usage: "float avg = AVERAGE(7, 7, 5);"
Output: "avg --> 6.333333"