Hi! ..My First Post
Am... I need a logic and/or some kind of help to code a c program which accepts a numeric equation and prints it step by step in order of precedence..
Eg:
the c program should accept any equation like : 5+(5-3)*6%10/6++ ie the equation may cointain +,-,*,/,%,++,-- and parantheses(any number of groups like (5(5(6(5(6)%10)))(5) etc with numbers( say integers)..
so, it should accept the equation and print it like this
Given Equation : 5+(5-3)*6%10/6++
Solution with precedence:
5+2*6%10/6++
5+3*6%10/7
5+18%10/7
5+18%1
5+0
5
the equation can be of any size...
ANY help is greatly appreciatied.. Please!