13
Answers

Formula in C#.net

Photo of Pravin Ghadge

Pravin Ghadge

13y
12.3k
1
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)