Function to print the list
void printlist ( Node head ) { while ( head != null ) { Console . Write ( head . data + " ▁ " ) ; if ( head . next != null ) { Console . Write ( " - > " ) ; } head = head . next ; } Console . WriteLine ( ) ; }