How to find the smallest value in array of integers with VB.NET

1 Answer

0 votes
Imports System
Imports System.Linq

Public Module Module1
	Public Sub Main()
		Dim arr As Integer() = {6, 8, 3, 9, 2, 4, 5}

    	Dim min = arr.Min()
		
		Console.WriteLine(min)
	End Sub
End Module



' run
'
' 2
'

 



answered Mar 8, 2021 by avibootz

Related questions

...