a(LBound(a))和a(UBound(a))的值分别是_______.Dima(-1To6)Fori=LBound(a)ToUBound(a)a(i)=iNexti
A: 00
B: -50
C: -16
D: 06
A: 00
B: -50
C: -16
D: 06
举一反三
- 有如下程序:Constn=-5Constm=6Dima(nTom)AsIntegerFori=LBound(a,1)ToUBound(a,1)a(i)=iNextiPrinta(LBound(a,1));a(UBound(a,1))运行后输出的结果为()。
- 有如下程序代码,输出结果是________。Dima()a=Array(1,2,3,4,5)fori=Lbound(a)toUbound(a)printa(i);nextI A: 12345 B: 01234 C: 54321 D: 43210
- 以下程序输出结果是()DimiAsIntegerDima()AsIngeger={1,2,3,4,5}Fori=LBound(a)toUBound(a)a(i)=a(i)*a(i)NextiConsole.WriteLine(a(i))
- 有如下程序: Const N=-5 Const M=6 Dim a(N To M)As Integer For i=LBound(a)To UBound(a) a(i)= i Next i Print a(LBound(a));a(UBound(a)) 运行后,输出结果为( )。
- 以下程序输出的结果是: Private Sub Form_Activate() Dim a a=Array(1,2,3,4,5) For i=Lbound(((A) To Ubound(((A) A(i)=i*a(i) Next i Print i, Lbound(((A) , Ubound(((A) , a(i) End Sub