SHARE
TWEET

calculo hipotenusa

a guest Aug 21st, 2019 60 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top