Recent Posts

Wednesday, 12 November 2014

post fix expression



Infix
Postfix
Prefix
Notes
A * B + C / D
A B * C D / +
+ * A B / C D
multiply A and B,
divide C by D,
add the results
A * (B + C) / D
A B C + * D /
/ * A + B C D
add B and C,
multiply by A,
divide by D
A * (B + C / D)
A B C D / + *
* A + B / C D
divide C by D,
add B,
multiply by A

0 comments: