Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Python by sid ( 6 years ago )
import math
print("Input 6 points")
x1 = int(input("x1: "))
y1 = int(input("y1: "))
x2 = int(input("x2: "))
y2 = int(input("y2: "))
x3 = int(input("x3: "))
y3 = int(input("y3: "))
a=math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
b=math.sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3))
c=math.sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3))
print(a)
print(b)
print(c)
def length():
if a==b==c:
print("equi triangle")
elif a==b or a==c or b==c :
print("iso traingle")
else :
print("sca traingle")
length()
#def angle():
p=math.acos(((a*a)+(b*b)-(c*c))/2ab)
print(p)
Revise this Paste
Parent: 103241