Driver code
public static void Main ( String [ ] args ) { Node head = null ; head = create ( head , 1 ) ; head = create ( head , 2 ) ; head = create ( head , 3 ) ; head = create ( head , 4 ) ; head = create ( head , 5 ) ; Console . Write ( " Linked ▁ list ▁ before ▁ modification : ▁ STRNEWLINE " ) ; display ( head ) ; head = removeNthFromEnd ( head , 2 ) ; Console . Write ( " Linked ▁ list ▁ after ▁ modification : ▁ STRNEWLINE " ) ; display ( head ) ; } }