Что не правильно? (basic) private sub commandbutton1_click() dim a(1 to 5, 1 to 5) as single dim i as integer, j as integer, k as integer dim sr as string k = 0 listbox1.clear for i = 1 to 5 sr = "" for j = 1 to 5 a(i, j) = i + 0,5j sr = sr + " " + format(a(i, j), "0.000") + " " if (a(i, j) > 1) and (a(i, j) < 2,5) then k = k + 1 next j listbox1.additem (sr) next i textbox1.text = str(k) end sub.
Private Sub CommandButton1_Click()
Dim A(1 To 5, 1 To 5) As Single
Dim i As Integer, j As Integer, k As Integer
Dim sr As String
k = 0
ListBox1.Clear
For i = 1 To 5
sr = ""
For j = 1 To 5
A(i, j) = i + 0.5 * j
sr = sr + " " + Format(A(i, j), "0.000") + " "
If (A(i, j) > 1) And (A(i, j) < 2.5) Then k = k + 1
Next j
ListBox1.AddItem (sr)
Next i
TextBox1.Text = Str(k)
End Sub
А если неверно запрограммировано, то надо знать, что и как должно делаться.