Saturday, February 12, 2011

Multiplication Table

Hi guys! this is simple program on how to generate a multiplication table. below is the source code on how to generate it. Hope this will help you. Enjoy and Happy coding! :)


Private Sub Command1_Click()
Dim a As Integer
Label1.Caption = Empty
For row = 1 To Text1.Text
    For col = 1 To Text1.Text
        a = row * col
        Label1.Caption = Label1.Caption & a & "     "
    Next
    Label1.Caption = Label1.Caption & vbCrLf
Next
End Sub

No comments:

Post a Comment