Microsoft converts your Int16 variables into Int32 when doing the add function.
Change the following:
Int16 answer = firstNo + secondNo;
into…
Int16 answer = (Int16)(firstNo + secondNo);
Microsoft converts your Int16 variables into Int32 when doing the add function.
Change the following:
Int16 answer = firstNo + secondNo;
into…
Int16 answer = (Int16)(firstNo + secondNo);