Driver code
public static void Main ( String [ ] args ) { Node head = newNode ( 1 ) ; head . next = newNode ( 9 ) ; head . next . next = newNode ( 9 ) ; head . next . next . next = newNode ( 9 ) ; Console . Write ( " List ▁ is ▁ " ) ; printList ( head ) ; head = addOne ( head ) ; Console . WriteLine ( ) ; Console . Write ( " Resultant ▁ list ▁ is ▁ " ) ; printList ( head ) ; } }