Computer Science, asked by sunnykumarsahnioo8, 1 day ago

find the postfix of the expression: a-b*c/d+[e+f/g]​

Answers

Answered by AdityaShankhdhar
1

Answer:

Infix: (a+b)*(c+d)

Prefix:

(a+b) = +ab, (c+d) = +cd

(a+b)*(c+d) = *+ab+cd

Post fix:

(a+b) = ab+, (c+d) = cd+

(a+b)*(c+d) = ab+cd+*

Infix: ((A+B)*C-(D-E)^(F+G))

Prefix:

(A+B) = +AB, (D-E) = -DE, (F+G) = +FG

(A+B)*C = *+ABC, (D-E)^(F+G) = ^-DE+FG

((A+B)*C-(D-E)^(F+G)) = -*+ABC^-DE+FG

Post fix:

(A+B) = AB+, (D-E) = DE-, (F+G) = FG+

(A+B)*C = AB+C*, (D-E)^(F+G) = DE-FG+^

((A+B)*C-(D-E)^(F+G)) = AB+C*DE-FG+^-

Explanation:

mark me brilliant

Similar questions