Skip to main content

Write a VB Program to accept the number from the user in text box and display multiplication table of that number into the list box.

· One min read
Kaustubh Kulkarni
file.vb
Private Sub cmdShow_Click()  

no = Val(Text1.Text)
For i = 1 To 10 Step 1
List1.AddItem (no &" x " & i & " = " & no * i)
Next
End Sub