Friday, September 13, 2019

Basic Math Operations in Visual Basic 6

In this article, I would like to share with you a sample program that will ask two numbers and then the program will compute the sum, difference, product and quotient of two given numbers using Microsoft Visual Basic 6.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com



Sample Program Output

Program Listing

Private Sub Command1_Click()
Dim sum, multiply, difference, quotient As Integer

sum = Val(Text1.Text) + Val(Text2.Text)
multiply = Val(Text1.Text) * Val(Text2.Text)
difference = Val(Text1.Text) / Val(Text2.Text)
quotient = Val(Text1.Text) * Val(Text2.Text)

Label3.Caption = "The sum is " & sum
Label4.Caption = "The product is " & product
Label5.Caption = "The difference is " & difference
Label6.Caption = "The quotient is " & quotient

End Sub

Private Sub Command2_Click()
End
End Sub




No comments:

Post a Comment