| … | |
… | |
| 25 | "PGchoicemacros.pl", |
25 | "PGchoicemacros.pl", |
| 26 | "PGanswermacros.pl", |
26 | "PGanswermacros.pl", |
| 27 | "PGauxiliaryFunctions.pl", |
27 | "PGauxiliaryFunctions.pl", |
| 28 | ); |
28 | ); |
| 29 | |
29 | |
| 30 | TEXT(&beginproblem); |
30 | TEXT(beginproblem()); |
| 31 | $showPartialCorrectAnswers = 0; |
31 | $showPartialCorrectAnswers = 0; |
| 32 | |
32 | |
| 33 | $a = random(2,9,1); |
33 | $a = random(2,9,1); |
| 34 | $b = random(2,9,1); |
34 | $b = random(2,9,1); |
| 35 | while ($a == $b) { $b = random(2,9,1);} |
35 | while ($a == $b) { $b = random(2,9,1);} |
| … | |
… | |
| 64 | $BR |
64 | $BR |
| 65 | \{$cmc -> print_a \} |
65 | \{$cmc -> print_a \} |
| 66 | |
66 | |
| 67 | END_TEXT |
67 | END_TEXT |
| 68 | |
68 | |
| 69 | ANS( checkbox_cmp( $cmc->correct_ans )); |
69 | ANS(checkbox_cmp( $cmc->correct_ans )); |
| 70 | |
70 | |
| 71 | ENDDOCUMENT(); # This should be the last executable line in the problem. |
71 | ENDDOCUMENT(); # This should be the last executable line in the problem. |