Created
April 26, 2020 09:50
-
-
Save abhi923/2da0ef8fd36a0bcab7df3200e4fbc6ce to your computer and use it in GitHub Desktop.
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
leg_a = float(input("Input first leg length: ")) | |
leg_b = float(input("Input second leg length: ")) | |
hypo = (leg_a**2 + leg_b**2) ** .5 | |
print("Hypotenuse length is", round(hypo,2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment