Guest User

calculo hipotenusa

a guest
Aug 21st, 2019
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data