Arithmetic operation from string
One of the simplest and easiest ways to evaluate math expressions is to use the Compute method of the DataTable class:

DataTable dt = new DataTable();
int answer = (int)dt.Compute("2+(4*3)*4", "");


answer is 50.

One caveat you'll have to trap exceptions to catch invalid expressions.