Write code that uses turtle graphics to draw an equilateral triangle, a square, and a regular pentagon, each with a side length of 100.

a. Python code snippet
b. Java code snippet
c. C++ code snippet
d. JavaScript code snippet