Question: We want to write a function that will compute and print the length of the hypotenuse of any right angle triangle. Which of the following
We want to write a function that will compute and print the length of the hypotenuse of any right angle triangle. Which of the following is correct?
| A. def print_hypotenuse(a, b): c = (a**2 + b**2) ** 0.5 print(c)
| |
|
| B. c = (3**2 + 4**2) ** 0.5 print(c) |
|
| C. def print_hypotenuse(a, b): c = a**2 + b**2 ** 0.5 print(c) |
|
| D. answer not shown |
|
| E. def print_hypotenuse(3, 4): c = (3**2 + 4**2) ** 0.5 print(c) |
|
|
F. def print_hypotenuse(a, b): c = (a**2 + b**2) ** 0.5 print(c) |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
