Documentos de Académico
Documentos de Profesional
Documentos de Cultura
CÓDIGO:
namespace CALCULADORA_POO
{
public partial class FCALCULADORAPOO : Form
{
double VALOR1, VALOR2, RESULTADO;
public FCALCULADORAPOO()
{
InitializeComponent();
}
VALOR2 = Double.Parse(TN2.Text);
}
catch
{
MessageBox.Show("ENTRADA INVALIDA. TRATE DE NUEVO");
TN1.Focus();
}
}
private void SALIDA()
{
TR.Text = Convert.ToString(RESULTADO);
}
private void LIMPIAR()
{
TR.Clear();
TN2.Clear();
TR.Clear();
}
EN EJECUCIÓN: