Accueil › Forums › Programmation WIMS › Programmation d’exercices OEF › Solution de type vecteur formel › Répondre à : Solution de type vecteur formel
14 septembre 2019 à 16:20
#5222
Modérateur
::
Bonjour,
D’après ce que je perçois ton exercice n’utilise pas le bon format d’étapes.
Voili voilou
\title{martin}
\matrix{nstep= reply1,reply2}
\nextstep{\nstep}
\statement{Donner votre reponse.<br><br>
\if{\step=1}{
étape 1 : (\embed{r1}, \embed{r2}).<br>
}
\if{\step=2 and (\reponse1 iswordof a and \reponse2 iswordof a)}{
étape 2 : \reply1,\reply2 <br>
<br>
<br>
tapez ok : \embed{r3}.<br>
}
\if{\step=2 and (\reponse1 iswordof b and \reponse2 iswordof b)}{
étape 3 : \reply1,\reply2 <br>
<br>
<br>
tapez b^2 : \embed{r4}.<br>
}
}
\answer{}{\reponse1}{type=algex}
\answer{}{\reponse2}{type=algex}
\condition{a=a ou b=b}{(\reponse1 iswordof a and \reponse2 iswordof a) or (\reponse1 iswordof b and \reponse2 iswordof b)}
\answer{}{ok}{type=formal}
\answer{}{b^2}{type=formal}
\text{nstep=(\step=2 and (a iswordof \reponse1 and a iswordof \reponse2))? reply3}
\text{nstep=(\step=2 and (b iswordof \reponse1 and b iswordof \reponse2))? reply4}