summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-08-05 21:15:07 +0000
committerKarl Berry <karl@freefriends.org>2020-08-05 21:15:07 +0000
commite1eb06571d7726b4d29e73375ece82bce42ebe4f (patch)
treee4d12a72891ec3f631e69c26ba4d1b7c1c0a39c3 /Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex
parentc6b37f35ffc2203abe12dd516a39f887880d483d (diff)
frpseudocode (5aug20)
git-svn-id: svn://tug.org/texlive/trunk@56051 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex')
-rw-r--r--Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex b/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex
new file mode 100644
index 00000000000..de0de6846e5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/frpseudocode/frpseudocode-example.tex
@@ -0,0 +1,22 @@
+\documentclass[a4paper]{article}
+\usepackage{algorithm}
+\usepackage{algpseudocode}
+\usepackage{frpseudocode}
+\begin{document}
+\begin{algorithm}
+\caption{Algorithme d'Euclide}
+\begin{algorithmic}[1]
+\Procedure{Euclide}{$a,b$}
+\Comment{PGCD de a et b}
+\State $r\gets a\bmod b$
+\While{$r\not=0$}\Comment{Si r = 0, on a la réponse}
+\State $a\gets b$
+\State $b\gets r$
+\State $r\gets a\bmod b$
+\EndWhile
+\State \Return $b$\Comment{Le PGCD est b}
+\EndProcedure
+\end{algorithmic}
+\end{algorithm}
+
+\end{document} \ No newline at end of file