Imports System
Public Class MainClass
Shared Sub Main()
'Declare variable
Dim intNumber As Integer
'Set number, add numbers, and display results
intNumber = 16
'intNumber = intNumber + 8
intNumber += 8
System.Console.WriteLine("Addition test... " & intNumber)
'Set number, subtract numbers, and display results
intNumber = 24
'intNumber = intNumber - 2
intNumber -= 2
System.Console.WriteLine("Subtraction test... " & intNumber)
'Set number, multiply numbers, and display results
intNumber = 6
'intNumber = intNumber * 10
intNumber *= 10
System.Console.WriteLine("Multiplication test... " & intNumber)
'Set number, divide numbers, and display results
intNumber = 12
'intNumber = intNumber / 6
intNumber /= 6
System.Console.WriteLine("Division test... " & intNumber)
End Sub
End Class
|