texmf-dist/doc/latex/algorithm2e/algorithm2e_exnlsty.tex
raw| 1 | \SetNlSty{texttt}{[}{]} |
| 2 | \SetAlgoNlRelativeSize{0} |
| 3 | \SetNlSkip{0em} |
| 4 | \nl\KwIn{input data} |
| 5 | \nl\KwOut{output data} |
| 6 | \nl\tcc{a comment line in C-style} |
| 7 | \nl\Repeat{\nl$e<\tau$}{ |
| 8 | \nl$f_n\leftarrow Y_1$\; |
| 9 | \nl$f_{n+1}\leftarrow f_n\times f_{n-1}$\; |
| 10 | \nl$e\leftarrow \frac{f_n}{2}$\; |
| 11 | } |
| 12 | \nl\KwRet{$e$} |