Evaluate the following postfix expression
120, 4,20, +,20, 10,- +,*
Answers
Answered by
0
Explanation:
hzhzhzhzhzghddjejwieiej
Answered by
0
Given:
120, 4, 20, +, 20, 10, -, +, *
To find:
Evaluate the following postfix expression 120, 4, 20, +, 20, 10, -, +, *
Solution:
120, 4, 20, +, 20, 10, -, +, *
120, (4 + 20) , 20, 10, -, +, *
120, 24, 20, 10, -, +, *
120, 24, (20 - 10) , + , *
120, 24, 10 , + , *
120, (24 + 10) , *
120 , 34 , *
(120 * 34)
4080
According to calculation the postfix expression 120, 4, 20, +, 20, 10, -, +, * evaluates to 4080
Similar questions