#include <stdio.h>
int matt(int x, int y)
{
    return (x+y);
    // the answer returns to main into the result
}

void tom(int z)
{
    printf("number is %d\n", z);
}
main()
{

int num1, num2, result;

printf("Please enter the first number: ");
scanf ("%d", &num1);


printf("Please enter the second number: ");
scanf ("%d", &num2);

result = matt(num1, num2);//jump to matt. num1 and num2 get assigned to the values in matt
tom(result); //result from matt is now in tom. it gets substrituted into z
printf("Thank you and we are done.\n");
}

