320 likes | 536 Views
Input. Postfix Demo. 1. 2. 3. 4. 5. *. +. 6. *. *. +. push 1. Input. Top of stack. Postfix Demo. 1. 2. 3. 4. 5. *. +. 6. *. *. +. push 1. 1. Input. Top of stack. Postfix Demo. 1. 2. 3. 4. 5. *. +. 6. *. *. +. 1. Input. Top of stack. Postfix Demo. 1.
E N D
Input Postfix Demo 1 2 3 4 5 * + 6 * * + push 1
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + push 1 1
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 3
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 3
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 3 4
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 3 4
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 3 4 5
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + pop two elements off the stack and push their product 1 2 3 4 5
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + pop two elements off the stack and push their product 1 2 3 4 5 4 5 *
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + pop two elements off the stack and push their product 1 2 3 20 4 5 *
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + pop two elements off the stack and push their sum 1 2 3 20
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + pop two elements off the stack and push their sum 1 2 3 20 3 20 +
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + pop two elements off the stack and push their sum 1 2 23 3 20 +
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 23
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 23 6
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 23 6
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 23 6 23 6 *
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 138 23 6 *
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 138
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 2 138 2 138 *
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 276 2 138 *
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 276
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 1 276 1 276 +
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 277 1 276 +
Input Top of stack Postfix Demo 1 2 3 4 5 * + 6 * * + 277