Skip to content

Instantly share code, notes, and snippets.

@DopamineDriven
Created January 4, 2019 23:42
Show Gist options
  • Save DopamineDriven/612edf7a39c9959e787cccc75c79f9bb to your computer and use it in GitHub Desktop.
Save DopamineDriven/612edf7a39c9959e787cccc75c79f9bb to your computer and use it in GitHub Desktop.
Hypotenuse of a right triangle
print("Solving for the hypotenuse, c, of a right triangle.")
a=input("input length of a:")
b=input("input length of b:")
a=float(a)
b=float(b)
c=((a**2+b**2)**0.5)
print(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment