public static void Main()
Console.WriteLine("This program calculates the average of 3 integers");
Console.WriteLine("-----------------------------------------------");
Console.WriteLine("Please specify the value of the first integer");
int firstNumber = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Please specify the value of the second integer");
int secondNumber = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Please specify the value of the third integer");
int thirdNumber = Convert.ToInt32(Console.ReadLine());
public static int Sum(int a, int b, int c)
public static double Average(int a, int b, int c)
double average = (double)sum / 3;