问题 单项选择题

以下程序段中Do...Loop循环执行的次数为( )。
n=5
Do
lf n Mod 2=0 Then
n=n\2
Else
n=n*3+1
End If
Loop untiln=1

A.4

B.3

C.5

D.2

答案

参考答案:C

问答题 简答题
判断题