Created
January 4, 2019 23:42
-
-
Save DopamineDriven/612edf7a39c9959e787cccc75c79f9bb to your computer and use it in GitHub Desktop.
Hypotenuse of a right triangle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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