Professional Documents
Culture Documents
Input x1, y1
Display x1, y1
Input x2, y2
Display x2, y2
Input x3, y3
Display x3, y3
Calculate
x12=x2-x1
x23=x3-x2
y12=y2-y1
y23=y3-y2
Calculate
l12=sqrt((x12*x12)+
(y12*y12))
l23=sqrt((x23*x23)+
Calculate
a12=x12/l12
b12=y12/l12
a23=x23/l23
b23=y23/l23
End