|
/ - + A B C D
, where
A = 6, B = 5, C = 2, D = 3
3 4 2 * +
3 4 + 5 *
2 4 + 5 3 - *
3 2 ^ 2 3 * 5 * + 5 2 ^ +
4 5 7 6 9 + * + *
2 3 4 + * 7 3 2 * + /
2 3 4 * + 2 8 1 4 3 * + + * /
1 2 3 4 5 * + - +
Evaluate the following postfix expressions.
+ * 2 3 4
* + 2 3 4
+ - 2 3 / 6 3
/ - 9 3 * 3 2
* + 2 3 + * 4 5 6
Translate the infix expressions into postfix.
2 * (3 + 4 * 5) * 6
(1 + 2) * (A - 3) ^ 2 * F
(A + B) * (C * (D - E) + F) - G
A + B + C
A * B + C * (D + E) / F + G
A + (B * C) + D / E * (F + G)
A / B + C * (D + E) * (F / G)
A / (B * (C - (D * (E + (F * G)))))