I have these two functions, ReadData which is suppose to take user input for three numbers, and the other function ComputeSum which is suppose to take the values entered by the user and add them together. I am trying to assign the result of the ComputeSum function to the **total** variable but it fails to print the correct total. Can someone explain what is causing this to occur?

```
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <math.h>

void ReadData(int *x,int *y,int *z);
int ComputeSum(int x,int y,int z);

int main()
{
  int x, y, z;
  int total;

  ReadData(&x, &y, &z);
  printf("\n");

  total = ComputeSum(x,y,z);

  printf("The total is: %d", total);

  printf("\n\n");

system("PAUSE");
return 0;

}

void ReadData(int *x,int *y,int *z)
{
printf("Enter three numbers : ");
scanf("%d %d %d", &x, &y, &z );
printf("\n");

ComputeSum(x,y,z);

return ;
}

int ComputeSum(int x,int y,int z)
{
int Sum = x+y+z;

return Sum;
}

___________________________________________________________________

     **Sample Output**

 Enter three numbers : 5 5 5

The total is: 8869621

Press any key to continue . . .

```

---