Math function deg/rad query

I've gone and got myself confused with this little program :( It's meant to find the height of a triangle in degrees, when the angle of elevation (y) and the distance accross (x) is known, and output it in some sort of table (formatting, however, is not important at this stage.) It does this, but of course only in Radians.

I put the chunk of code following "float height....." in to convert to degrees, but it seems to do nothing. Even when I change the values, it has no effect on the program.

Here's the code I have, and note, this is a UK keyboard setup, so I couldn't work out the "hash" symbol. For the sake of this, I'll just write hash. How can I make this thing output Degrees instead of Radians?

Code:

`hash include <cstdlib>`

hash include <iostream>

hash include <iomanip>

hash include <math.h>

using namespace std;

float height (float x, float y)

{return x*(180/3.141593);

return y*(180/3.141593);

}

int main()

{ for (float x=0; x <=60; x+=10)

{ for (float y=0; y <=85; y+=5)

cout << setw(12) << (tan(y)*x);

cout << endl;

}

}

Thanks,

George