Challenge: Calculate the Average of Any Number of Integers

Apply what you’ve learned about the variable argument list in the coding exercise in this lesson.

Problem statement

In this challenge, you have to implement the getAverage function.

int getAverage( int count, ...... );

Get hands-on with 1200+ tech skills courses.