单项选择题

有如下程序段:
S:=0;
i:=1;
while i<=5 do
begin
s:=s+i;
i:=i+1;
end;
执行该程序段后,变量i的值为()

A.1
B.3
C.5
D.6