Question: C program Please write comments to explain the solution! 2. If n points are connected to form a closed polygon as shown below, the area
C program

Please write comments to explain the solution!
2. If n points are connected to form a closed polygon as shown below, the area of the polygon can be computed as n-2 Notice that although the illustrated polygon has only six distinct corners, n for this polygon is 7 because the algorithm expects that the last point, (to, ye), will be a repeat of the initial point, (tox yo). (xo,yo) (x6.Y6) (X2.y2) (x3.Y3) (x5.V5) (x4.Y4) n=7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
