Sunday, 27 November 2016

Visual Basic 6.0 program to find the multiplication table of a given number


Interface












Program Code

Dim a As Integer

Private Sub cmdResult_Click()
Dim i As Integer
For i = 1 To 10
Print i & " * " & a & " = " & i * a
Next
Label2.Caption = a
End Sub

Private Sub Form_Load()
Form5.Show
a = InputBox("Enter the number")
End Sub

No comments:

Post a Comment