There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult. C.A.R. Hoare

Infix to Postfix

Language Java | Level Intermediate | Category Data structure | August 30, 2015 12:39 pm


Data structure Description

Infix and postfix are the notations to write the expressions. The infix notation put operators in between the operands. The postfix notation put operators after their operands. Write a program convert from infix notation to postfix notation.

Example
Infix (5 + 3) * 12 / 3
Postfix: 5 3 + 12 * 3 /


Output

   					 

Infix : 	1+3*4/5
Postfix : 	134*5/+



				    

Comments


No comments available!

Please login to add comments.