Add two integers together


Module Tester

Sub Main()
Dim firstNumber, secondNumber As String

Dim number1, number2, sumOfNumbers As Integer

firstNumber = 10

secondNumber = 20

number1 = firstNumber
number2 = secondNumber

sumOfNumbers = number1 + number2 ‘ add numbers
Console.WriteLine(“The sum is {0}”, sumOfNumbers)

End Sub ‘ Main

End Module

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s