1. г
s=0
for i:=1 to 4 do
s=s+2*i
i = 1 s = 2
i = 2 s = 6
i = 3 s = 12
i = 4 s = 20
2. в
s=0
k=0
while k<4 do<br>k=k+1
k = 1 s = 0
k = 2 s = 0
k = 3 s = 0
k = 4 s = 0
s=s+k
k = 4 s = 4
3. a
s=1
for k:=5 to 2 do
s=s+i
Цикл не запуститься, так как 5>2
4. в
s=1
for k:=2 to 3 do
s=s+k
k = 2 s = 3
k = 3 s = 6
s=s*20
k = 3 s = 120