题目内容
执行如图所以的程序框图,如果输入a=5,那么输出n=( )


A.2 | B.3 | C.4 | D.5 |
a=5,进入循环后各参数对应值变化如下表:
∴结束运行的时候n=3.
故选:B.
p | 15 | 20 | 结束 |
q | 5 | 25 | |
n | 2 | 3 |
故选:B.

练习册系列答案
相关题目
题目内容
A.2 | B.3 | C.4 | D.5 |
p | 15 | 20 | 结束 |
q | 5 | 25 | |
n | 2 | 3 |