-->
当前位置:首页 > 题库

单选题:请读程序:

Luz5年前 (2021-05-10)题库585
请读程序: @[B](2)
```
#include

#include
using namespace std;

int main()
{ int a,b;
for(a=1,b=1;a<=100;a++)
{ if(b>=20) break;
if(b%3==1)
{ b+=3;
continue;
}
b-=5;
}
printf("%d\n",a);

return 0;
}
```
程序的输出结果是:
A. 7
B. 8
C. 9
D. 10




A.7
B.8
C.9
D.10


答案:B