' 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 ' result = Console.ReadLine() operatorSymbol = Console.ReadLine() Do Until operatorSymbol = "=" number = Console.ReadLine() If operatorSymbol = "+" Then result = result + number Else If operatorSymbol = "-" Then result = result - number End If End If operatorSymbol = Console.ReadLine() Loop Console.WriteLine(result) ' Console.ReadLine() End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.