Write a C# program that prompts the user to input three integer values and find the greatest value of the three values.
using System;
using System.Linq;
class Avg
{
public static void Main()
{
int[] values = new int[3];
Console.WriteLine("Enter three integer values (each on separate line):");
for (int qp = 0; qp < values.Length; qp++)
values[qp] = int.Parse(Console.ReadLine());
Console.WriteLine("The greatest value is {0}", values.Max(value => value));
}
}