1.

Write the specification of an algorithm hypotenuse w hose inputs are the lengths of the two shorter sides of a right angled triangle, and the output is the length of the third side.

Answer»

1. hypotenuse (a, b)

2. – – inputs: a, b are real numbers, a > 0, b > 0 

3. – – outputs: c2 = a2 + b2 wrhere c is real number, c > 0



Discussion

No Comment Found