ich versuche das einmaleins mit einem array zu errechnen.wo steckt hier der fehler?die ausgabe stimmt leider nicht :
Dim tab1() As System.Int32 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
Dim tab2() As System.Int32 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
Dim i, i2 As System.Int32
Dim wert1, wert2, ergb As System.Int32
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
For i = 0 To 9 (oder halt lenght-1)
wert1 = tab1(i)
For i2 = 0 To 9 (oder halt lenght-1)
wert2 = tab2(i)
ergb = wert1 * wert2
ListBox1.Items.Add(ergb)
Next
Next
Dim tab1() As System.Int32 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
Dim tab2() As System.Int32 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
Dim i, i2 As System.Int32
Dim wert1, wert2, ergb As System.Int32
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
For i = 0 To 9 (oder halt lenght-1)
wert1 = tab1(i)
For i2 = 0 To 9 (oder halt lenght-1)
wert2 = tab2(i)
ergb = wert1 * wert2
ListBox1.Items.Add(ergb)
Next
Next