Answer to Question #241797 in Python for Aditya

Question #241797

Write a program to find the hypotenuse H of a right-angled triangle of sides A and B.

output : 13

5

it should be : 5

output : 12

5

it should be 13.


1
Expert's answer
2021-09-24T15:48:41-0400
A = float(input())
B = float(input())


C = (A*A + B*B)**0.5
print(C)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS