I'm trying to create a pseudo code in Algorithm format in Latex. Here is what I have tried till now.
\begin{algorithm}
\caption{Online algorithm}\label{euclid}
\begin{quote}
\indent\textit{\textbf{for}} each new point p \textit{\textbf{do}} the following steps
\begin{algorithmic}[1]
\indent\indent\textit{\textbf{begin}} \hfill\break
\textit{\textbf{for}} each x in t \textit{\textbf{do}}
\begin{quote}
\begin{flushleft}
\begin{algorithmic}[1]
\textit{\textbf{begin}}
\newline
\indent do something
\textit{\textbf{end}}
\end{algorithmic}
\end{flushleft}
\newline
\indent\indent\textit{\textbf{end}}
\end{quote}
\end{algorithmic}
\end{quote}%
\end{algorithm}
My problem is it writes =0 after each end in my psedocode like 'end=0'. I appreciate to tell me how can I get rid of =0 after each end in my code.