case 1:
AddNum(num1,num2);
cout << "The sum of " << num1 << " and " << num2 << " is " << num1+num2 << endl;
break;
case 2:
SubNum(num1,num2);
cout << "The difference of " << num1 << " and " << num2 << " is " << num1-num2 << endl;
break;
case 3:
MultNum(num1,num2);
cout << "The product of " << num1 << " and " << num2 << " is " << num1*num2 << endl;
break;
case 4:
DiviNum(num1,num2);
cout << "The quotient of " << num1 << " and " << num2 << " is " << num1/num2 << endl;
break;
case 5:
ModNum(num1,num2);
cout << "The remainder of " << num1 << " and " << num2 << " is " << num1%num2 << endl;
break;
1st. Please use code formatting (the "<>" button) to post code.
2nd. You haven't actually written the functions, not that you should write a function for adding two numbers together but as an example you need to have something like this:
1 2 3 4
int AddNum(int a, int b)
{
return a+b;
}
below your code. Then instead of the case 1 that you have you would do.
1 2 3
case 1:
cout << "The sum of " << num1 << " and " << num2 << " is " << AddNum(num1, num2) << endl;
break;
Take a read through this if you are confused still.