10.有如下VB程序: Dim i As Integer,j As Integer,k As string,n As Integer n=3 List1.Clear For i=1To n k=″″ For j=1To i k=k+″*″ Next j List1.AddItem k Next i 該程序運行后,在列表框List中顯示的是( )
11.下面VB程序的功能是求100~999間被3除余2,被5除余3的所有整數(shù),并統(tǒng)計符合條件的數(shù)的個數(shù)。 Private Sub Command1_Click ( ) Dim i As Integer,P As Integer p=0 For i=100 To 999 If
Then List1.AddItem Str(i)
End If Next i List1.AddItem Str(p) End Sub 為實現(xiàn)上述功能,請在程序橫線處填入合適的語句: 劃線①處應填入的語句為: