nice tnx uploader
nice tnx uploader
Sysmbol Name * Multiplication / Division + Addition - Subtraction \ Integer Division Mod Modolo ^ ExponentiationThis time, we’re going to create a program performing the Arithmetic Operators. To do this, open Visual Basic and create a new project then save it as “Arithmetic Operators”. Next, add two textbox, six labels and a button. Deigning the Object Properties.
Object Property Settings Textbox1 Name txtinput1 Textbox2 Name txtinput2 Label1 Name lblmul Text 0 Label2 Name lbldiv Text 0 Label1 Name lbladd Text 0 Label1 Name llblsub Text 0 Button1 Name btncompute Text ComputeThen,arrange all object looks like as shown below. At this time, we will add functionality to our application. To do this, double click the” Compute” button and add the following code:
Dim input1 As Integer Dim input2 As Integer input1 = txtinput1.Text ' assign value to a variable input2 = txtinput2.Text lblmul.Text = input1 * input2 ' compute for Multiplication lbldiv.Text = input1 / input2 ' compute for Division lbladd.Text = input1 + input2 ' compute for Addition lblsub.Text = input1 - input2 ' compute for Subttraction