Showing posts with label product of two numbers in vb. Show all posts
Showing posts with label product of two numbers in vb. Show all posts

Sunday, December 11, 2016

Product of Two Numbers in Visual Basic 6

Here is a very simple program that I wrote using Microsoft Visual Basic 6 to ask the user to give two numbers and then our program will compute the product of the two numbers being provided by our user.

Add me at Facebook my address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.



Sample Program Output


Program Listing


Private Sub Command1_Click()
Dim product_all
product_all = Val(Text1.Text) * Val(Text2.Text)
Label3.Caption = "The Product of " & Val(Text1.Text) & " and " & Val(Text2.Text) & _
                 " is " & product_all & "."
End Sub

Private Sub Command2_Click()
End
End Sub