12. Queue/QueueUsingStacks.cpp
void push2(int x)  
{  
//  Condition to check whether the stack2 is full or not  
if(top2==N-1)  
{  
   printf("\nStack is full..");  
}  
else  
{  
    top2++;   // incrementing the value of top2.  
    stack2[top2]=x;  // assigning the 'x' value to the Stack2  
  
}  
}
// pushing the data into the stack2.  
pushing the data into the stack2.
pushing the data into the stack2 .
void push2(int x)  
{  
if(top2==N-1)  
{  
   printf("\nStack is full..");  
}  
else  
{  
    top2++;   
    stack2[top2]=x;  
}  
}
void push2 ( int x ) { if ( top2 == N - 1 ) { printf ( " \n " ) ; } else { top2 ++ ; stack2 [ top2 ] = x ; } }
pushing the data into the stack2.
pushing the data into the stack2 .
//  Condition to check whether the stack2 is full or not   // incrementing the value of top2.   // assigning the 'x' value to the Stack2  