
Here is the code for the design to the right:
import turtles.*;
public class DrawLine12 extends TurtleProgram {
public void run() {
Turtle yertle;
Turtle yertle2;
yertle = new Turtle(80, 140);
yertle2 = new Turtle(80, 140);
yertle2.right(80);
for (int k=1;k<10;k++){
yertle.forward(250);
yertle.right(160);
yertle2.forward(87);
yertle2.left(40);
}
yertle.hide();
yertle2.hide();
}
}