You are on page 1of 1

Dim N1, N2, RES As Double

N1 = TextBox1.Text
N2 = TextBox2.Text
If RadioButton1.Checked = True Then
RadioButton1.Checked = True
RES = N1 + N2
LBLTOTAL1.Text = RES
MessageBox.Show("ADICION")
Else
RadioButton1.Checked = False
End If

If RadioButton2.Checked = True Then


RadioButton2.Checked = True
RES = N1 - N2
LBLTOTAL2.Text = RES
MessageBox.Show("SUSTRACCION")
Else
RadioButton2.Checked = False
End If
N1 = TextBox1.Text
N2 = TextBox2.Text
If RadioButton3.Checked = True Then
RadioButton3.Checked = True
RES = N1 * N2
LBLTOTAL3.Text = RES
MessageBox.Show("MULTIPLICACION")
Else
RadioButton3.Checked = False
End If
N1 = TextBox1.Text
N2 = TextBox2.Text
If RadioButton4.Checked = True Then
RadioButton4.Checked = True
RES = N1 / N2
LBLTOTAL4.Text = RES
MessageBox.Show("DIVISION")
Else
RadioButton4.Checked = False
End If

You might also like