well if you have to pass all three ways that means you're using functions....
You're probably going to use atleast one function for the calculations, what do you want that function to do? What would the decleration of that function be?
maybe something like this:
float calchypt(Pass the legs in here);
with it actaull being:
Code:
float calchypot(Pass atleast the legs in here)
{
float temp = leg1^2 + leg2^2;
hypot=sqrt(temp);
//now if you declared hypot in this function,
//then you'll want to return it here
}
Take note that was just psudo code...some of the things like square root and squared you'll need from an include (I think it's math.h) and I'm not 100% sure on thte syntax there.
Kermi3