static void Main(string[] args) { var bottom = new Triangle(triangle); var sum = bottom.MaxSum(); Console.WriteLine("MaxSum: " + sum.Sum); Console.Write("Path: "); for (int i = 0; i < sum.Path.Length - 1; i++) { Console.Write(sum.Path[i].ToString() + ", "); } Console.Write(sum.Path[sum.Path.Length - 1]); }