I have a string variables which contains formula as below,


Now I want to execute the above string variable (str) to produce the result.

Please suggest me to proceed.

Thanks in Advance.

Here's a great place to start, a working calculator project in C#:

Part 1
Part 2
Part 3

If that's too complicated for you here's a much simpler one:

Click Here

Amazing what 5 minutes and a search engine will produce.