Skip to content

Instantly share code, notes, and snippets.

@abhi923
Created April 26, 2020 09:50
Show Gist options
  • Save abhi923/2da0ef8fd36a0bcab7df3200e4fbc6ce to your computer and use it in GitHub Desktop.
Save abhi923/2da0ef8fd36a0bcab7df3200e4fbc6ce to your computer and use it in GitHub Desktop.
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