Back to Program:<<<
Expected O/P:
************MAIN MENU***************
1. PUSH
2. POP
3. PEEK
4. Display
5. Exit
Enter Your Option:1
Enter the data to Push on the Stack:100
--->>> 100 Successfully Push on the Stack
************MAIN MENU***************
1. PUSH
2. POP
3. PEEK
4. Display
5. Exit
Enter Your Option:1
Enter the data to Push on the Stack:101
--->>> 101 Successfully Push on the Stack
************MAIN MENU***************
1. PUSH
2. POP
3. PEEK
4. Display
5. Exit
Enter Your Option:1
Enter the data to Push on the Stack:102
--->>> 102 Successfully Push on the Stack
************MAIN MENU***************
1. PUSH
2. POP
3. PEEK
4. Display
5. Exit
Enter Your Option:4
--->>>STACK: ['100', '101', '102']
************MAIN MENU***************
1. PUSH
2. POP
3. PEEK
4. Display
5. Exit
Enter Your Option:3
--->>>Peek value on Stack is: 102
************MAIN MENU***************
1. PUSH
2. POP
3. PEEK
4. Display
5. Exit
Enter Your Option:2
--->>> 102 is Successfully Pop from the Stack
************MAIN MENU***************
1. PUSH
2. POP
3. PEEK
4. Display
5. Exit
Enter Your Option:4
--->>>STACK: ['100', '101']
************MAIN MENU***************
1. PUSH
2. POP
3. PEEK
4. Display
5. Exit
Enter Your Option:5
--->>>Program Terminated.
0 Comments
Post a Comment