0% found this document useful (0 votes)
33 views2 pages

Algoritmos

This document contains code for a program that performs basic arithmetic operations. It defines buttons for calculating, exiting, and clearing. When the calculate button is clicked, it gets numeric values from text boxes, performs sum, difference, product, and quotient calculations, and displays the results in labels. The clear button sets all text boxes and labels to empty strings.

Uploaded by

Shelo Rosas
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

Algoritmos

This document contains code for a program that performs basic arithmetic operations. It defines buttons for calculating, exiting, and clearing. When the calculate button is clicked, it gets numeric values from text boxes, performs sum, difference, product, and quotient calculations, and displays the results in labels. The clear button sets all text boxes and labels to empty strings.

Uploaded by

Shelo Rosas
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Public Class frboperacionesaritmeticas Private Sub BTOSALIR_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTOSALIR.

Click End End Sub Private Sub BTOCALCULAR_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTOCALCULAR.Click Dim NUMERO1 As Integer, NUMERO2 As Integer, SUMA As Integer, RESTA As Integer, MULTIPLICACION As Integer, DIVISION As Double NUMERO1 = Val(TXTNUMERO1.Text) NUMERO2 = Val(TXTNUMERO2.Text) SUMA = NUMERO1 + NUMERO2 RESTA = NUMERO1 - NUMERO2 MULTIPLICACION = NUMERO1 - NUMERO2 DIVISION = NUMERO1 / NUMERO2 LBLSUMA.Text = "LA SUMA ES" & SUMA LBLRESTA.Text = "LA RESTA ES" & RESTA LBMULTIPLICACION.Text = "LA MULTIPLICACION ES" & MULTIPLICACION LBLDIVISION.Text = "LA DIVISION ES" & DIVISION

End Sub Private Sub BTOLIMPIAR_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTOLIMPIAR.Click LBLSUMA.Text = "" LBLRESTA.Text = "" LBMULTIPLICACION.Text = "" LBLDIVISION.Text = "" TXTNUMERO1.Text = "" TXTNUMERO2.Text = "" End Sub End Class

You might also like