Write a program named Averages that includes a method named Average that accepts any number of numeric parameters, displ
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a program named Averages that includes a method named Average that accepts any number of numeric parameters, displ
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.