Skip to main content

Write a Vb.net program to accept a number from anuser through inputBox and display its multiplication table into the ListBox

· One min read
Kaustubh Kulkarni
file.vb
  
PublicClass Form1
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim no AsInteger
Dim i AsInteger
no = CInt(inputBox("Enter Number "))
For i = 1 To 10
ListBox1.Items.Add(no * i)
Next
EndSub
EndClass