coursc/branchements/08.tex
Florian Maury 0b4615ed74 initial
2014-02-24 18:38:56 +01:00

24 lines
557 B
TeX

\begin{frame}[containsverbatim]
\frametitle{\secname}
\framesubtitle{\subsecname~: Imbrications}
Les blocks \verb|if| et \verb|if-else| peuvent être imbriqués à volonté, autant de fois que nécessaire, sans restriction spécifique.
{\footnotesize\begin{exampleblock}{Imbrication de blocks if et ses variantes}
\begin{verbatim}
if(a < 5) {
//instructions
if(a > -50) {
//instructions
}
else {
//instructions
}
else {
if(b == 2) {
//instructions
}
//instructions
}\end{verbatim}
\end{exampleblock}}
\end{frame}