Sub aaa()
Const N = 100
Dim i As Integer, s As Integer
Dim R(1 To N) As Integer
Randomize Timer
For i = 1 To N
R(i) = Int(385 * Rnd - 22)
Next i
s = 0
For i = 1 To N Step 2
If R(i) < 0 Then s = s + R(i)
Next i
MsgBox "Сумма нечетных элементов с отрицательными значениями равна " + Str(s)
End Sub