To add and subtract, just declare an int variable dif and insert it.
dif = a-b;
Printf ("difference is %d\n", dif);
Just do it, as follows:
Master ()
{
int a,b,sum,dif
Scanf("%d%d ",&i, & b);
sum = a+b;
dif = a-b;
Printf("sum is %d\n ",sum);
Printf ("difference is %d\n", dif);
system(" pause \ n ");
}
In general, if you only write int, it is equal to long int (that is, int), and you don't need to change it. It can only be in this range.
In addition, -32768 to 32767(2 to the power of 15) in the answer is the range of short int (short can also be written).