' Visual Basic 2008 9.0 .NET Examples - Nested Structures - Introduction to Visual Basic : Module Exercise1Solution Sub Main() Dim value As Integer Dim highestValue As Integer ' Do While value >= 0 Console.WriteLine("Value ?") value = Console.ReadLine() ' If value > highestValue Then highestValue = value End If Loop ' Console.WriteLine("Highest Value : " & highestValue) ' Console.ReadLine() End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.