万能百科  > 计算机   > 

[单项选择题] 有以下程序: #include <stdio.h> main() int a=1, b=2; while (a<6)b+=a;a+=2

2021-07-20   

[单项选择题] 有以下程序:

#include <stdio.h>

main()

int a=1, b=2;

while (a<6)b+=a;a+=2; b%=10;)

printf("%d,%d",a,b);

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

A.5,11

B.7,1

C.7,11

D.6,1

正确答案:

B

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签