' Visual Basic 2008 9.0 .NET Examples - Iterations - Introduction to Visual Basic : Module Exercise5Solution Sub Main() Dim number, result As Integer Dim operatorSymbol As String ' number = Console.ReadLine() ' result = number Do operatorSymbol = Console.ReadLine() If operatorSymbol = "=" Then Console.WriteLine(result) Else number = Console.ReadLine() If operatorSymbol = "+" Then result = result + number Else If operatorSymbol = "-" Then result = result - number End If End If End If Loop Until operatorSymbol = "=" ' Console.ReadLine() End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.