Popping element from the top of the stack
static void stack_pop ( Stack < int > stack ) { Console . WriteLine ( " Pop ▁ : " ) ; for ( int i = 0 ; i < 5 ; i ++ ) { int y = ( int ) stack . Pop ( ) ; Console . WriteLine ( y ) ; } }