0

I have a basic C# code like this:

int ans;
string str = "9+7*3";
ans = int.Parse(str);
System.Console.WriteLine("Answer: " + ans);

And of course it's not work. So I just wondering is there any way to convert an operation string to int like that.

0 Answers0