问题 单项选择题

有以下程序:
void main()
int i,s=0;
for(i=1;i<10;i+=2) s+=i;
printf("%d\n",s);

程序执行后输出的结果是( )。

A.31
B.25
C.30
D.26

答案

参考答案:B

选择题
填空题