Computer Science, asked by neetuabroluthra9813, 7 months ago

Evaluate the following postfix expression: 9 3 2 ^ / 3 2 * + 6 1 * -

Answers

Answered by angelaashritha1919
1

Answer:

the answer is 1

Explanation:

symbol             operation                     stack

   9                     push 9                           9

   3                     push 3                          9,3

   3                     push 2                         9,3,2

   ^                 perform 3^2                     9,9

    /                 perform 9/9                       1

   3                      push 3                         1,3

   2                      push 2                       1,3,2

   *                  perform 3*2                     1,6

   +                  perform 1+6                      7

   6                        push 6                      7,6

   1                         push 1                      7,6,1

   *                   perform 6*1                     7,6

   -                   perform  7-6                     1

Similar questions