Calculadora

Solo disponible en BuenasTareas
  • Páginas : 2 (303 palabras )
  • Descarga(s) : 4
  • Publicado : 19 de noviembre de 2009
Leer documento completo
Vista previa del texto
using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

usingSystem.Windows.Forms;

namespace Calculadora

{

public partial class Calculadorailgn : Form

{

string respuesta;

int valor = 0;

double resp = 0;

intsigno = 0;

public Calculadorailgn()

{

InitializeComponent();

}

private void Form1_Load(object sender, EventArgs e)

{

}private void bt1ilgn_Click(object sender, EventArgs e)

{

acumula(1);

}

private void bt2ilgn_Click(object sender, EventArgs e)

{acumula(2);

}

private void bt3ilgn_Click(object sender, EventArgs e)

{

acumula(3);

}

private void b4tilgn_Click(objectsender, EventArgs e)

{

acumula(4);

}

private void bt5ilgn_Click(object sender, EventArgs e)

{

acumula(5);

}private void bt9ilgn_Click(object sender, EventArgs e)

{

acumula(9);

}

private void bt7ilgn_Click(object sender, EventArgs e)

{acumula(7);

}

private void bt8ilgn_Click(object sender, EventArgs e)

{

acumula(8);

}

private voidbtSUMAilgn_Click(object sender, EventArgs e)

{

signos(1);

}

private void btRESTAilgn_Click(object sender, EventArgs e)

{

signos(2);

}private void btMULTIPLICAilgn_Click(object sender, EventArgs e)

{

signos(3);

}

private void btDIVIDEilgn_Click(object sender, EventArgs e)...
tracking img