#include <stdio.h>

int add(int,int);//prototype
int sub(int,int);//prototype
float mult(float,float);//prototype

void main()
{
int x,y;
float temp1=3.45,temp2=5.67;
float answer;
int result;
x=5;
y=6;
result=add(x,y);		//result variable stores 
printf("The result was %d\n",result);

result=sub(x,y);
printf("The result was %d\n",result);

answer=mult(temp1,temp2);
printf("The result was %.2f\n",answer);
}

int add(int a,int b)		//int add() - the int is the type of the
							//returned variable (total in this case)
{
int total;
total=a+b;

return total;
}

int sub(int a,int b)//send two integers, get one integer back
{
int total;
total=b-a;
return total;
}

float mult(float a,float b)//receive two floats, send one float back
{
float totaltemp;
totaltemp=a * b;

return totaltemp;
}