title: Solving equation using bodmas in C#
body: <p>I have equations like <code>(7+((8%2)(7%3)))</code>. I want to solve this using bod-mas: first brackets should be solved after it divide, multiple, addition and subtraction.</p>
  
  <p>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.</p>
  
  <p>I visited <a href="http://www.codeproject.com" rel="nofollow">http://www.codeproject.com</a>; they gave a solution like: </p>
  
  <pre><code>string equationString = "(7+((8%2)(7%3)))";
  string explicitMultiply = equation String.Replace(")(", ")*(");
  </code></pre>
  
  <p>But it doesn't work. Why?</p>