Clean and add code for if-statement.

This commit is contained in:
Jeff Lance 2021-12-04 19:56:21 +01:00
parent 6453cf8534
commit f9a462e2ac

View File

@ -36,9 +36,16 @@
% %
% %
\algrenewcommand\algorithmicdo{}
\algrenewcommand\algorithmicif{\textbf{Si}}
\algrenewcommand\algorithmicelse{\textbf{sinon}}
\algrenewtext{If}[1]%
{\algorithmicif\ #1 \textbf{alors} \algorithmicdo}
\algrenewcommand\algorithmicfor{\textbf{Pour}} \algrenewcommand\algorithmicfor{\textbf{Pour}}
\algnewcommand\algorithmicto{\textbf{à}} \algnewcommand\algorithmicto{\textbf{à}}
\algrenewcommand\algorithmicdo{}
\algrenewtext{For}[3]% \algrenewtext{For}[3]%
{\algorithmicfor\ #1 \textbf{allant de} #2 \textbf{à} #3 \algorithmicdo} {\algorithmicfor\ #1 \textbf{allant de} #2 \textbf{à} #3 \algorithmicdo}