\documentclass{standalone}
\usepackage{chemfig}
\begin{document}

\chemfig{[:18]H_{2}C*5(-CH_2-CH_{2}-CH_{2}-H_{2}C-[,,2,1])}
\chemfig{[:18]*5(-----)}

\end{document}
