I'm new to LATEX and having a tough time doing my homework and properly formatting code. As you see, the spacing is out of whack and the beginning of each line for each instruction does not line up. Could anyone recommend a better way to make sure they line up? Thanks.
P.S. - I tried using \quad, but it doesn't seem to work when it is the first instruction on a line in a LATEX document.
\indent \indent $IF\ Z_1 \neq 0\ GOTO \ C$\\
$[B]$ \indent $X \leftarrow X - 1$\\
\indent \indent $Y \leftarrow Y + 1$\
Rendering:

algorithmalgorithmicxetc (lots of examples on this site) – David Carlisle Sep 15 '13 at 16:19