Use the image to answer the question.
A cone is marked with a height of 6 centimeters and a diameter of 2 centimeters, both shown as perpendicular dotted lines. The slant height is marked as 4 centimeters.
What is the length of the cone?
(1 point)