问题 单项选择题

有以下程序:
#include <stdio.h>
main()
int a=1, b=2;
while (a<6)b+=a;a+=2; b%=10;)
printf("%d,%d\n",a,b);

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

A.5,11
B.7,1
C.7,11
D.6,1

答案

参考答案:B

多项选择题
单项选择题