2000万题库,覆盖所有考试类目,免费查题
今日已更新 1115 道题
2024-06-17 11次 计算机二级 反馈错误 加入收藏 正确率 : 100%
main( )
{ int s=0,a=1,n;
scanf("%d",&n);
do
{ s+=1; a=a-2; }
while(a!=n);
printf("%d/n",s);
}
若要使程序的输出值为2,则应该从键盘给n输入的值是
A.-1
B.-3
C.-5
D.0
王老师
回答题目:2621条
(备注:部分简单试题没有解析)
本题链接: https://www.chengdubuxi.cn/zyks/nznd5.html