You have to peform the mathematical operation in it's own statement and not inside the
WriteLine()
call where it is treated differently. So you might split the operations:
int result = num01 + num02 * num03;
string strResult = "The result is " + result;
Console.WriteLine(strResult);
Also you are using
Convert.ToDouble()
to convert the input but assigning to
int
. So use
Convert.ToInt32()
or define the variables as
double
.