I have equations like (7+((8%2)(7%3)))
. I want to solve this using bod-mas: first brackets should be solved after it divide, multiple, addition and subtraction.
I have the program in which the user creates a formula using salary heads like basic pay, etc. After that I find their value like the equation above and now I want to solve it.
I visited http://www.codeproject.com; they gave a solution like:
string equationString = "(7+((8%2)(7%3)))";
string explicitMultiply = equation String.Replace(")(", ")*(");
But it doesn't work. Why?