The value of the postfix notation 25*3-42/ *
Answers
Step-by-step explanation:
What the above expression can be represented as:
Bracket is not implied by given expression but I've used to it to tell you how this expression will look like when converted to Infix express.
6 3 (2+4) - *
6 (3 - (2+4)) *
6 * (3 - (2+4))
Infix expression of given Postfix expression:
6 * (3 - (2+4))
6*(3–6)
6*(-3)
-18
Hence the Postfix expression evaluates to: (-18)
PLEASE MARK ME AS BRANLIEST
Given : 2 , 5 , * , 3 , - , 4 , 2 , / , *
To Find : The value of the postfix notation
Solution:
operator need to be applied between top two elements in stacks ( right side 2 elements ) here below :
Scanned Stack
2 2
5 2 , 5
* 10 (2 * 5 = 10)
3 10 , 3
- 7 (10 - 3 = 7)
4 7 , 4
2 7 , 4 , 2
/ 7 , 2 ( 4 /2 = 2)
* 14 (7 * 2 = 14)
Hence the Value of postfix notation 2 , 5 , * , 3 , - , 4 , 2 , / , *
is 14