Hey guys, I'm new here, obviously so if I do anything wrong let me know (gently). This program out puts x = 4 and y = 64 and I'm not sure why?

[#include <cmath>

#include <iostream>

using namespace std;

double Square(double);

double Cube(double);

int main(void)

{ double x = 2.0, y = 3.0;

x = Square(x);

y = Cube(x);

cout << "x = " << x << endl;

cout << "y = " << y << endl;

system("Pause");

return 0;

}

double Square(double y)

{

double x = pow(y,2);

return x;

}

double Cube(double x)

{

double y = pow(x,3);

return y;

}

]

any help would be awesome. thanks