var list = new List<int> { 1, 2, 3, 4, 5, 6, 7, 16, 17 }; Console.WriteLine("MAX=>" + list.Max(z => z)); Console.WriteLine("MIN=>" + list.Min(z => z));