Floating number input

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", hypo)

Comments

Popular posts from this blog

Operators in C language

3D printers