Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage{algorithm2e}
- begin{document}
- vspace{2em}
- begin{algorithm}[H]
- KwData{this text}
- KwResult{how to write algorithm with LaTeX2e }
- initialization;
- While{not at end of this document}{
- read current;
- eIf{understand}{
- go to next section tcp*[f]{Case (1)} ;
- current section becomes this one;
- }{
- go back to the beginning of current section;
- }
- }
- end{algorithm}
- Analyis: Consider Case (1).
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement