Program to find even elements from Array Collection in VB.NET using System.Array Class

Rajnilari2015
Posted by Rajnilari2015 under VB.NET category on | Points: 40 | Views : 147
Array.ForEach(New Integer() {23, 56, 78, 11, 9, 1, _
2, 3, 4, 5, 6, 100, _
98, 201, 54}, Function(element)
If element Mod 2 = 0 Then
Console.WriteLine(element)
End If

End Function)

Result
------
56
78
2
4
6
100
98
54

Comments or Responses

Login to post response