Compare of Two Numbers In Visual Basic 2008

Visual basic 2008 programming tutorial this time is the ratio of two numbers that we enter. If we input two numbers, eg 12 and 21, then the result will come out in the form of the second number is greater than the first number. Well, if the two numbers together, then the result is the same as the first number second number. As the beginning of the creation of this program, first make the design as shown below.
Comparison In Visual Basic 2008

If the design has been created as shown above, then double-click on button1 or button "COMPARE". Then enter the following  code:

Looking for comparison of course we have to use the operator, the operator used is the operator > (greater), operator < (smaller), and operator = (equal to). Regarding the function of these operators do not need to explain anymore because I'm sure you all know. Next, double-click or button button2 "EXIT", then enter the red code below:


After that, run the program and as this is the result:
That's all I can explain. Please enter your comments.

Previous
Next Post »