单项选择题

有如下程序段:
int i=1;
while(1)
i++;
if(i==10)break;
if(i%2==0)eout<<'$';

执行这个程序段输出字符*的个数为

A.10
B.3
C.4
D.5