#include <stdio.h>
int addnumbers(int,int);
int subtractnumbers(int,int);
int multiplynumbers(int,int);

void main()
{
int x,y,choice;
int answer;
printf("Please enter first number");
scanf("%d",&x);
printf("Please enter second number");
scanf("%d",&y);

printf("Menu\n");
printf("1. Add\n");
printf("2. Subtract\n");
printf("3. Multiply\n\n");
printf("Enter your choice:");
scanf("%d",&choice);

switch(choice)
{
	case 1:
	answer=addnumbers(x,y);
	break;

	case 2:
	answer=subtractnumbers(x,y);
	break;

	case 3:
	answer=multiplynumbers(x,y);
	break;

	default:
	printf("Sorry option not available");
}//end switch

printf("\n\nThe answer was: %d",answer);

}

int addnumbers(int a,int b)
{
int total;
total=a + b;
return total;		//only possible to return ONE value
}

int subtractnumbers(int a,int b)
{
	int total;
	total=a-b;
	return total;
}

int multiplynumbers(int a,int b)
{
int total;
	total=a*b;
	return total;
}