执行下列程序段后,x的值是( ) n=5: x=1 : i=1 Do x=x*i i=i+1 Loop While i
举一反三
- 声明一个变量为局部变量应该用( )。 A: Private Sub Command1 Click() n=5:x=1 Do X=X * I I=I + 1 Loop While I < n Print x End Sub B: Private Sub Command1_Click() n=5:X=1:I=1 Do X=X*I I=I + 1 Loop While I <n Print x End Sub C: Private Sub Command1_Click() n=5:X=1:I=1 Do X=X * I I=I + 1 Loop While I<=n Print X End Sub D: Private Sub Command1_Click() n=5:X=1:I=1 Do X=X * I I=I + 1 Loop While I>n Print X End Sub
- 执行下列程序段后,x的值是()。n = 5: x = 1: i = 1Do x = x * i i = i + 1Loop While i < n
- 执行下列程序段后,x的值是( )。n = 5: x = 1: i = 1Do x = x * i i = i + 1Loop While i <; n A: 10 B: 15 C: 24 D: 120
- 执行下列程序段后,x的值是( )。n = 5: x = 1: i = 1Do x = x * i i = i + 1Loop While i < n A: 10 B: 15 C: 24 D: 120
- 执行下列程序段后,x的值是()n=5:x=1:i=1Dox=x*ii=i+1LoopWhilei 24