# determine the value of the variable S after executing the fragment of the algorithm: s:=0 nc for i from 1 to 5 s:=s+i*i kts

determine the value of the variable S after executing the fragment of the algorithm:
s:=0
nc for i from 1 to 5
s:=s+i*i
kts
You can still ask an expert for help

• Questions are typically answered in as fast as 30 minutes

Solve your problem for the price of one coffee

• Math expert for every subject
• Pay only if we can solve it

Blaine Day
s=0 start loop execution: i=1 s=0+1*1=1
i=2 s=1+2*2=1+4=5; i=3 s=5+3*3=5+9=14; i=4 s=14+4*4=14+16=30; i=5
s=30+5*5=30+25=55