Advertisement
Guest User

calculo hipotenusa

a guest
Aug 21st, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. x = int(input("Informe um dos catetos: "))
  2. y = int(input("Informe o outro cateto: "))
  3.  
  4. hip = (pow(x, 2) + pow(y, 2))
  5. hip = float(pow(hip, 0.5))
  6.  
  7. print("A hipotenusa é igual a:", hip)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement