Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cateto1 = float(input("Primeiro cateto: "))
- cateto2 = float(input("Segundo cateto: "))
- hip = ((cateto1 * cateto1) + (cateto2 * cateto2))**(1/2)
- print("Hipotenusa: ", round(hip, 3))
Advertisement
Add Comment
Please, Sign In to add comment