0

# How to write right angle triangle formul in python

8 Answers

+ 1

I need a python program to calculate the c in [a2+b2=c2 formul ] also it should be like a sizes of a triangle I think I wish this is more clear

0

What data do you have?

0

I need a formul in python a2+ b2 = c2
a<=b<=c it's necessary....

0

Need to be more specific. What do u want to calculate? What data do u have?

0

while True:
a=float(input('A: '))
b=float(input('B: '))
c=(a**2+b**2)**0.5
print(c)
x= input('continue? (y or n): ')
if x == 'y':
continue
else:
break
That is a simple way to do it.

0

thank you so much đđ

- 1

it should be a loop and includes input data