Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. documentclass{article}
  2.  
  3. usepackage{algorithm2e}
  4.  
  5. begin{document}
  6.  
  7. vspace{2em}
  8.  
  9. begin{algorithm}[H]
  10. KwData{this text}
  11. KwResult{how to write algorithm with LaTeX2e }
  12. initialization;
  13. While{not at end of this document}{
  14. read current;
  15. eIf{understand}{
  16. go to next section tcp*[f]{Case (1)} ;
  17. current section becomes this one;
  18. }{
  19. go back to the beginning of current section;
  20. }
  21. }
  22. end{algorithm}
  23.  
  24. Analyis: Consider Case (1).
  25.  
  26. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement