Problem in C#
i have a problem in C#
Im working/learning in consoleapplications and im trying to make a more advanced calculator.
Instead of type first the tal1 then method and last tal2 i wanna make it more advanced so you just can type like : 5+2 and get the answer...or 12*512
heres my progress.
i made it read nearly right but i got one big problem and that was i cant convert a Array into string/int
else i think i would solve this 
Im working/learning in consoleapplications and im trying to make a more advanced calculator.
Instead of type first the tal1 then method and last tal2 i wanna make it more advanced so you just can type like : 5+2 and get the answer...or 12*512
heres my progress.
Code:
string method = null;
string all = null;
int nr1 = 0;
int nr2 = 0;
Console.WriteLine("Welcome to Hasses calculator.");
Console.WriteLine("Type a mathcalc like 6 + 2, 10 / 2, 1000 - 500, 8 * 9");
all = Console.ReadLine();
if (all.Contains("+")){method = "+";}
if (all.Contains("-")) { method = "-"; }
if (all.Contains("*")) { method = "*"; }
if (all.Contains("/")) { method = "/"; }
//Here will the get the first number, then the secound should be read into tal1 & tal2.
Console.WriteLine("Your calculation is {0}", all);
Console.WriteLine("Method is : {0}", method);
Console.ReadLine();
else i think i would solve this 

