Page 1 of 1

Write a program named Averages that includes a method named Average that accepts any number of numeric parameters, displ

Posted: Sun Jul 10, 2022 11:30 am
by answerhappygod
Write a program named Averages that includes a method namedAverage that accepts any number of numeric parameters, displaysthem, and displays their average. For example, if 7 and 4 werepassed to the method, the output would be: 7 4 -- Average is 5.5Test your function in your Main(). Tests will be run againstAverage() to determine that it works correctly when passed one,two, or three numbers, or an array of numbers.