DOUBLEPOLY TT

5 x 432 degrees = 2160 —- 2160 mod 360 = 0

TT total turning is a good way to make sure angles close up nicely
IF it is divisble with 360 — MODULO 360 takes care of that!

so in this case the input is 72 – the rest will follow because 360 mod 72 = 0

(3 x 72 x 2 = 432) — 432 x 5 = 2160 — 2160/6 = 360

see this variation of doublepoly with the TOTAL TURNING added:

3 x 72 = 216 degrees
2 x 216 = 432 degrees

see another example using the modulo to execute a looping stucture: