Module Tester
Sub Main()
Dim exponent As Integer ' power input by user
Dim result As Integer = 2 ' number to raise to a power
exponent = 12
result ^= exponent ' same as result = result ^ exponent
Console.WriteLine("result = exponent: {0}", result)
result = 2 ' reset result to 2
result = result ^ exponent
Console.WriteLine("result = result exponent: {0}", result)
End Sub
End Module
|