Create a postfix calculator in c programming code that accepts an input like the following:
Input:
2 4 6 + - p
13 0 /
7 5 + p
7 13 + + p
49 7 / p
and the output example is the following:
Output:
expression = -8
Divide by 0 error --- You should be more careful
expression = 12
Illegal binary operation. Stack has less than two operands
Comments
Leave a comment