I have an assignment and i got stuck on this question.... please help me if you can.... all what's required is a small pseudocode for the problem....
Write an algorithm that computes the length of the third side of a right triangle given the lengths of the other two sides.
Input: x,y (the lengths of two sides), and w (if w = 0, x and y are the legs; if w = 1, either x or y is the hypotenuse)
Output: z (the length of the third side)
2007-09-26
15:39:02
·
2 answers
·
asked by
abdul a
2
in
Science & Mathematics
➔ Mathematics