Public Class Tester
Public Shared Sub Main
Dim SqaresTable(5, 1) As Integer
SqaresTable(0, 0) = 0
SqaresTable(0, 1) = 0
SqaresTable(1, 0) = 1
SqaresTable(1, 1) = 1
SqaresTable(2, 0) = 2
SqaresTable(2, 1) = 4
SqaresTable(3, 0) = 3
SqaresTable(3, 1) = 9
SqaresTable(4, 0) = 4
SqaresTable(4, 1) = 16
SqaresTable(5, 0) = 5
SqaresTable(5, 1) = 25
Console.WriteLine(SqaresTable(2, 1))
End Sub
End Class
|