public Node(int Value, Node Next)
public void SetValue(int Value)
public void SetNext(Node Next)
return this.Next != null;
public static void Print(Node Head)
Console.Write("-> {0} ", temp.GetValue());
public static int SumChain(Node head)
sum = sum+temp.GetValue();
public static int maxChain(Node head)
if (max< temp.GetValue())
public static int LengthChain(Node head)
static void Main(string[] args)
Node H1 = new Node(11, new Node(78, new Node(0, new Node(45,new Node(7,new Node(92,new Node(22)))))));