nivo_title=Maak de rij getallen af en vul in
bewerking=bewerking3.proc
n=$teller
woordmax=10
operatie=!randitem +,-
getallen=$empty
antwoord=$empty
opgave=$empty

!if $operatie=+
    OPERATIE=optelling
    getal=!randint 1,5
    getal=$[$teller*$getal]
    A=!randint 4,10
    !for p=1 to 15
	getallen=!append item $getal to $getallen
    	getal=$[$getal+$A]
    !next p
!else
    OPERATIE=aftrekking
    getal=!randint 150,300
    getal=$[$teller*$getal]
    A=!randint 4,10
    !for p=1 to 15
	getallen=!append item $getal to $getallen
	getal=$[$getal-$A]
    !next p
!endif

aantal_invul=!randint 6,10
vraag=!randint 1,$aantal_invul
GOED$n=!item $vraag of $getallen

!for p=1 to $aantal_invul
    ding=!item $p of $getallen
    ding1=$ding
    !if $p=$vraag
	!if $wims_user=supervisor
	    ding=<input size="5" name="ANT$n" value="$(GOED$n)">
	!else
	    ding=<input size="5" name="ANT$n" value="$(ANT$n)">
	!endif
	ding1=<blink>$(GOED$n)</blink>
    !endif
    opgave=!append word <th>$ding</th> to $opgave
    antwoord=!append word <th>$ding1</th> to $antwoord
!next p
    
opgave$n=<table cellspacing="10">$opgave</table>
antwoord$n=<table cellspacing="10">$antwoord</table>
somtekst$n=In de onderstaande rij zit een gat,<br>kun jij uit vinden wel getal hier in hoort?<br>\
<small>de rij is ontstaan door een $OPERATIE</small>




!if $HINT=1
    hint=helaas geen hints
!endif
