I am trying to make an algorithm in LaTeX. For example, I use this template and I want help for this step
First loop mik=aik/akk;
And second loop aij=aij- mikakj;
And finally finish with this final loop
bi=bi=mikbk;
How to write this in LaTeX code?
\section{The algorithm which solves the method Gaussian elimination}
\For{$k$=1$:$1$n-1$}{
\For{$i=k+1:1:n$}\;
{write the first loop here}{
\For{}
{write the second loop here}
instructions1\; finish here
instructions2\;
{final loop there}
}{
instructions3\;
}
}
\caption{How to write algorithms}
Sorry for this wrong please help to solve this.