单项选择题

执行完以下语句段后,sum和i的值分别为()。
sum=0,i=1
while i< 5:
sum+=i
i=i+2

A.sum=4,i=4
B.sum=4,i=5
C.sum=9,i=5
D.sum=9,i=4