vector a yb y c=a+b

Upload: juan-jose-principe-campos

Post on 03-Feb-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/21/2019 vector a yb y c=a+b

    1/1

    ublic Class Form1

    Public A(14), B(14), C(14), I As Integer/

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    A(I) = TextBox1.Text B(I) = TextBox2.Text ListBox1.Items.Add(A(I)) ListBox2.Items.Add(B(I)) TextBox1.Text = "" TextBox2.Text = "" TextBox1.Focus() I = I + 1

    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

    Dim K As Integer K = I - 1 For I = 0 To K C(I) = A(I) + B(I) ListBox3.Items.Add(C(I))

    Next I = 0

    End Sub