# Ecode Five-pointed Star

We’ve had a thoroughly understanding to ecode, today let’s draw a five-pointed star there as the below picture states:

Principle:

It is made of 5 lines with the same length, each turning angle is a fixed value, how can we specify the angles?

1.In the middle of the five-pointed star is a regular pentagon, which can be divided into 3 triangles. The sum of the internal angles of each triangle is 180 degrees, 180*3=540 degrees

2.Each angle of the pentagon is 540/5=108 degrees

3.Calculate the angle of the triangle at the top of the five-pointed star from 108 degrees to be 180-108=72 degrees

4.Due to the symmetry of the triangle, the two base angles are the same, and the top angle is calculated as 180-72*2=56

5.Finally, the number of outer angles is 180-56=144. Suppose we start drawing from the lower right corner as the starting point, then when drawing to the top, we need to turn left 144 degrees and then draw the next line, the answer is 144 degrees, did you get it right?