S:=0; k:=6; While k больше 3 do k:=k - 1; S:=S + k;
s = 0; k = 6
k>3 => да; k = 6-1 = 5;
k>3 => да; k = 5-1 = 4;
k>3 => да; k = 4-1 = 3;
k>3 => нет
S = 0+3 = 3
Ответ: 3
S:=0; k:=6; While k больше 3 do k:=k - 1; S:=S + k;
s = 0; k = 6
k>3 => да; k = 6-1 = 5;
k>3 => да; k = 5-1 = 4;
k>3 => да; k = 4-1 = 3;
k>3 => нет
S = 0+3 = 3
Ответ: 3