Searching element in the stack
static void stack_search ( Stack < int > stack , int element ) { bool pos = stack . Contains ( element ) ; if ( pos == false ) Console . WriteLine ( " Element ▁ not ▁ found " ) ; else Console . WriteLine ( " Element ▁ is ▁ found ▁ at ▁ position ▁ " + pos ) ; }