\embed{definition}{&nbsp;}<pre class="cc">
<div class="variable">
\text\lbrac a = \randint(3<tt class="w">..</tt>12) \rbrac
\integer\lbrac b = \\a^2 \rbrac
\text\lbrac nstep = <tt class=reply>r1</tt> \rbrac
\nextstep\lbrac \\nstep \rbrac
\text\lbrac commentaire= \rbrac </div>
<div class="statement">
\statement\lbrac Calculez   &#92;(\\a^2).
\\commentaire
<tt class=comm>\\embed</tt>\lbrac r \\step \rbrac  \rbrac </div>
<div class="variable">
\answer\lbrac \rbrac\lbrac \\rep1 \rbrac\lbrac <tt class="type">type=numeric</tt> \rbrac
\answer\lbrac \rbrac\lbrac \\rep2 \rbrac\lbrac <tt class="type">type=numeric</tt> \rbrac
\answer\lbrac \rbrac\lbrac \\rep3 \rbrac\lbrac <tt class="type">type=numeric</tt> \rbrac
\text\lbrac rep = \\rep1, \\rep2, \\rep3 \rbrac \text\lbrac H = \\rep[\\step - 1] \rbrac
\text\lbrac nstep = \\H != \\b <tt class="op">and</tt> \\step<=3 ?  r \\step: \rbrac
\condition\lbrac \rbrac\lbrac \\b = \\rep[1] \rbrac\lbrac <tt class="type">option=hide</tt> \rbrac
\condition\lbrac \rbrac\lbrac \\b = \\rep[2] <tt class="op">or</tt> \\b = \\rep[1] \rbrac\lbrac <tt class="type">option=hide</tt> \rbrac
\condition\lbrac \rbrac\lbrac \\b = \\rep[3] <tt class="op">or</tt> \\b = \\rep[1] <tt class="op">or</tt> \\b = \\rep[2] \rbrac\lbrac <tt class="type">option=hide</tt> \rbrac
\text\lbrac commentaire=\\step = 2 <tt class="op">and</tt> \\H != \\b ? Cela est faux, recommencez. \rbrac
\text\lbrac commentaire= \\step = 3 <tt class="op">and</tt> \\H != \\b ? Vous n'avez
plus le droit qu'à un essai. \rbrac </div>
<div class="statement">
\feedback\lbrac 1 = 1 \rbrac\lbrac La réponse est \\b \rbrac </div>
</pre>
