Pravin Ghadge

Pravin Ghadge

  • 566
  • 2.1k
  • 586.6k

Formula in C#.net

Aug 5 2011 1:37 AM
Hi,

I'd like to convert a string to a variable formula in C#. I mean that I wanna write as the following.


string formula="a*b";
int a=10;
int b=10;
int ans= formula //here I want to convet formula to.........

Is there any way to solve my problem? Please help me.

Answers (13)