0

How to write right angle triangle formul in python

4th Apr 2017, 6:25 PM
MR.Cakir
8 Respuestas
+ 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
4th Apr 2017, 7:03 PM
MR.Cakir
0
What data do you have?
4th Apr 2017, 6:46 PM
Luca Garrera
0
I need a formul in python a2+ b2 = c2 a<=b<=c it's necessary....
4th Apr 2017, 6:48 PM
MR.Cakir
0
Need to be more specific. What do u want to calculate? What data do u have?
4th Apr 2017, 7:00 PM
Augusto
4th Apr 2017, 7:06 PM
Luca Garrera
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.
4th Apr 2017, 7:15 PM
Augusto
0
thank you so much 😊😊
4th Apr 2017, 7:16 PM
MR.Cakir
- 1
it should be a loop and includes input data
4th Apr 2017, 7:07 PM
MR.Cakir