Example to convert Infix to postfix expression
Question:-
(A + B) * C/D + e ^ F / G
Solution:-
(A + B) * C/D + e ^ F / G
(AB+) * C/D + (E^F)/G
(AB+) *C/D+(EF^)/G
[(AB+C*)/D]+(EF^)/G
(AB+C*D/) + [(EF^)/G]
(AB+C*D/) + (EF^G/)
AB+C*D/EF^G/+
(A + B) * C/D + e ^ F / G
Solution:-
(A + B) * C/D + e ^ F / G
(AB+) * C/D + (E^F)/G
(AB+) *C/D+(EF^)/G
[(AB+C*)/D]+(EF^)/G
(AB+C*D/) + [(EF^)/G]
(AB+C*D/) + (EF^G/)
AB+C*D/EF^G/+
No comments