答案1
你可以从
\documentclass{article}
\usepackage[noline]{algorithm2e}
% https://tex.stackexchange.com/a/362194/2288
\SetKwFor{For}{for }{}{end}
\begin{document}
\begin{algorithm}
\For{j = l :n}{
\If{j > 1}{
A(j:n,j) = A(j:n, j) - A(j:n, l :j - l )·A(j, l:j - l )T
}
A(j:n, j) = A(j:n, j) / J A(j,j)
}
\end{algorithm}
\end{document}