I’ve searched around for this, it’s probably very common question but getting back to programming and not sure what to search for.
What I want to do is let let user to input addition, subtraction, multiplication or division and store this for an calculation.
is it possible to parse a string with only an arithmetic value to an int somehow?
or do I need to create an if statement or another switch statement?
switch (choiceSwitch)
{
case 1:
{
choice = "+";
break;
}
case 2:
{
choice = "*";
break;
}
case 3:
{
choice = "+";
break;
}
int result = num1 "choice" num2;



