```logo
repeat 3 [fd 100 rt 120]
```
Here's a breakdown of the code:
- `repeat 3` - This command tells Logo to repeat the following commands three times.
- `fd 100` - This command moves the turtle forward by 100 units, drawing a line segment.
- `rt 120` - This command turns the turtle to the right by 120 degrees.
When this code is executed, the turtle will draw three line segments, each 100 units long, and each rotated 120 degrees from the previous one. This will create an equilateral triangle.
You can adjust the values of `fd` and `rt` to draw triangles of different sizes and angles.