if (N mod 2 <> 0) and (N mod 3 = 0) then
if ((N >= 345) and (N < 543)) or (N mod 7 = 0) then
if (N mod 3 = 0) or (N mod 10 = 0) then
if (N >= 231) and (N < 312) and (N mod 3 <> 0) then
if (N mod 2 <> 0) and (N div 10 mod 10 <= 5) then
if (N > 9) and (N < 100) and (N mod 10 = N div 10) then
if (N mod 10 = 4) and (N div 100 mod 10 > 3) then
if (N > 9) and (N < 100) and (N div 10 mod 2 <> 0) then
if (N mod 2 = 0) and (N div 10 mod 10 > 5) then
if (N > 99) and (N < 1000) and (N div 100 = 8) then
if (a mod 2 = 0) or (b mod 2 = 0) then
if (a + b > 56) and (a + b < 145) then
if (a mod 10 = 6) and (b mod 10 = 6)
if (a > 0) and (b > 9) and (b < 100) then
if (a div 10 mod 10 < 5) or (b div 100 mod 10 > 3) then
if (a mod 3 = 0) or (b mod 5 <> 0) then
if (a > 0) and (b >= 0) then
if (a > 100) or (b > 100) then
if (a mod 8 > 4) and (b mod 12 < 5) then
if (a mod 2 <> 0) and (b mod 2 <> 0) then
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Randomize()
TextBox1.Text = ""
Dim n As Integer = 10
Dim array(n) As Integer
Dim summa, number As Integer
Dim i As Integer
summa = 0
number = 0
For i = 1 To n Step 1
array(i) = Int((100 * Rnd()) + 1)
TextBox1.Text = TextBox1.Text & array(i) & " "
If array(i) Mod 2 = 0 Then
summa = summa + array(i)
number = number + 1
End If
Next i
Label1.Text = "Сумма всех положитеьных чисел равна " & summa & ". И количество их равно " & number
End Sub
End Class