# How to assign numbers to lines? [closed]

Is it possible to assign numbers to each line?

I need this to locate a mistake.

Try adding below before \begin{document}:
% line numbers

You can adjust the frequency of printed line numbers by changing number in [ ].