The algorithmic package lets me make a while loop as
\begin{algorithmic}
\While{$u\neq v$}
\State Something
\EndWhile
\end{algorithmic}
which results in a
while(u is not v) do
something
end while
How can I make a do-while loop which result in
do
something
while(u is not v)
(Sorry for the lack of output. I don't know how to add that to my question. I hope the question and the intention is clear enough) I use document class memoir and packages algpseudocode and algorithm.
\Repeat <text> \Until{<condition>}
construct, if that helps. Same meaning asdo...while
, just different words.:)