Professional Documents
Culture Documents
Stack operations
1.Push
2.Pop
3.Display
4.Peek
Stack operations
1.Push
2.Pop
3.Display
Enter choice:(1/2/3)1
Enter book name:Harry Potter
Stack operations
1.Push
2.Pop
3.Display
Enter choice:(1/2/3)1
Enter book name:Moral stories
Stack operations
1.Push
2.Pop
3.Display
Enter choice:(1/2/3)1
Enter book name:Alice in Wonderland
Stack operations
1.Push
2.Pop
3.Display
Enter choice:(1/2/3)3
Alice in Wonderland
Moral stories
Harry Potter
Stack operations
1.Push
2.Pop
3.Display
Enter choice:(1/2/3)2
deleted item is: Alice in Wonderland
Stack operations
1.Push
2.Pop
3.Display
Enter choice:(1/2/3)4
thank u
Output