Subversion Repositories wimsdev

Rev

Rev 8514 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6509 bpr 1
\title{Carrés (nonstop)}
2
\integer{n = 3}
3
\integer{m = randint(3..4)}
4
\text{question = wims(values x for x = \m to \n + \m)}
5
\text{rep = wims(values x^2 for x = \m to \n + \m)}
6
\text{th = wims(makelist \(x^2\) for x = \m to \n + \m - 1)}
7
\text{ETAPE = r1}
8
\text{cnt_r = 1}
9
\nextstep{\ETAPE}
184 bpr 10
 
6509 bpr 11
\statement{
8514 bpr 12
 \if{\step = 1}{Calculer le carré de \question[1] :
13
   <div class="wimscenter">\embed{r 1, 5} </div>
6509 bpr 14
 }
15
 \if{\step = 2}{Calculer le carré de \question[2]
8514 bpr 16
   <div class="wimscenter">\embed{r \ETAPE[1], 5} </div>
17
   \if{\cnt_r = 2}{
6509 bpr 18
      et le carré de \question[3]
8514 bpr 19
     <div class="wimscenter">\embed{r \ETAPE[2], 5} </div>
6509 bpr 20
   }
21
  }
22
}
184 bpr 23
 
6509 bpr 24
\answer{\th[1]}{\rep[1]}{type=numeric}{option=nonstop}
25
\answer{\th[2]}{\rep[2]}{type=numeric}{option=nonstop}
26
\answer{\th[3]}{\rep[3]}{type=numeric}{option=nonstop}
8525 bpr 27
\text{ETAPE=}
6509 bpr 28
\if{\step = 2}{
29
  \text{ETAPE = \rep[1] = \reply1 ? r2 : r2,r3}
184 bpr 30
}
8525 bpr 31
\integer{cnt_r = items(\ETAPE)}
184 bpr 32
 
6509 bpr 33
\feedback{1=1}{\rep[1] = \reply1}