Question: using static System.Console; public class Averages { public static void Main() { // Write your main here } public static void Average(double a, double b)
using static System.Console; public class Averages { public static void Main() { // Write your main here } public static void Average(double a, double b) { Write(a + " " + b + " -- Average is " + (a+b)/2); } public static void Average(double a, double b, double c) { Write(a + " " + b + " " +c + " -- Average is " + (a+b+c)/3); } public static void Average(double[]a) { double sum = 0; double count = a.Length; for (int i=0;i }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
