A(x_1,y_1)

B(x_2,y_2)

C(x_3,y_3)

Izračun ploščine

A = (1, 1)
B = (5, 2)
C = (3, 4)
a = Segment(C, A)
b = Segment(A, B)
c = Segment(B, C)
mnogokotnik1, c_1, a_1, b_1 = Polygon(A, B, C)
Tekstmnogokotnik1: "Ploščina " + (Name[A]) + (Name[B]) + (Name[C]) + " = " + mnogokotnik1
d = false