📅  最后修改于: 2022-03-11 15:00:07.146000             🧑  作者: Mango
\documentclass{IEEEtran}
\usepackage{algorithm,algorithmic}
\begin{document}
\begin{algorithm}
\caption{Algorithm for ...}
\begin{algorithmic}[1]
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
\REQUIRE in
\ENSURE out
\\ \textit{Initialisation} :
\STATE first statement
\\ \textit{LOOP Process}
\FOR {$i = l-2$ to $0$}
\STATE statements..
\IF {($i \ne 0$)}
\STATE statement..
\ENDIF
\ENDFOR
\RETURN $P$
\end{algorithmic}
\end{algorithm}
\end{document}