А) s := 0; For i := 1 to 3 Do s:=s+i*i Б) s := 0; For i := 1 to 3 Do s:=i+5 В) s := 0; For i := 1 to 3 Do s:=i+s Г) s := 1; For i := 1 to 3 Do s:=i Д) s := 0; For i := 1 to 3 Do s:=i+s 1) 6 2) 14 3) 8 4) 5 5) 3 Очень срочно
А2 Б3 В1 Г3 Д1
А) s = 0 + 1*1 + 2*2 + 3*3 = 1 + 4 + 9 = 14
Б) s = 3 + 5 = 8
В) s = 0 + 1 + 2 + 3 = 6
Г) s = 3
Д) s = 0 + 1 + 2 + 3 = 6