if top is - 1 , that means stack is empty
if ( top == - 1 ) Console . WriteLine ( " Stack ▁ is ▁ Empty " ) ; else { Console . Write ( " Stack : ▁ " ) ; for ( int i = 0 ; i <= top ; i ++ ) Console . Write ( a [ i ] + " ▁ " ) ; Console . WriteLine ( ) ; } }