!set title=Somma di interi consecutivi
!if $wims_read_parm!=$empty
 !goto $wims_read_parm
!endif
oef2wims_version=3.22
author=Frédéric, Pitoun

ansorder=r
varcnt=5
prevarcnt=4
postvarcnt=0
replycnt=1
choicecnt=0
conditioncnt=0
feedbackcnt=0
format=html

val1=$imagedir
val2=$confparm1
val3=$confparm2
val4=$confparm3
val5=$confparm4

!if $testcondition=yes
 !goto test
!endif
!if $status=waiting
 !exit
!endif

tmp0=!randint 2, 20

val6=$[rint($(tmp0))]
val7=$[rint($val6+1)]
tmp0=!randint 100, 200

val8=$[rint($(tmp0))]
t_=!replace internal \( by ( in sum(i=$val6,$val8,i)
tmp0=!exec pari $t_

val9=$[rint($(tmp0))]
replytype1=default
replyname1=n
replygood1=$val8
question=__EXECUTED_1692754_EXERCISE__

!goto stat

!exit

:question
$()Determinare l'intero 
!insmath n
$() tale che	<p class="wimscenter">	
!insmath $val6+$val7+...+n=$val9
$()	</p>	Si ha 
!insmath n=
$()  
!read oef/embed.phtml reply 1,5 
$()	
$()
!exit

:hint
$()
$()
!exit

:help
$()
$()
!exit

:solution
$()
$()
!exit

:latex
$()
$()
!exit

:feedback

!exit

:test

!exit

:stat
vsavelist=6,7,9
embedcnt=1
