Você está na página 1de 1

namespace waly

{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
int a1,a2,a3;
a1 = Convert.ToInt32(Box1.Text);
a2 = Convert.ToInt32(Box2.Text);
a3 = a1 + a2;
Boxsuma.Text = Convert.ToString(a3);

}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void button3_Click(object sender, EventArgs e)
{
int a1, a2, a3;
a1 = Convert.ToInt32(Box1.Text);
a2 = Convert.ToInt32(Box2.Text);
a3 = a1 - a2;
Boxresta.Text = Convert.ToString(a3);

}
private void button4_Click(object sender, EventArgs e)
{
int a1, a2, a3;
a1 = Convert.ToInt32(Box1.Text);
a2 = Convert.ToInt32(Box2.Text);
a3 = a1 * a2;
Boxmultipli.Text = Convert.ToString(a3);
}
private void button5_Click(object sender, EventArgs e)
{
int a1, a2, a3;
a1 = Convert.ToInt32(Box1.Text);
a2 = Convert.ToInt32(Box2.Text);
a3 = a1 / a2;
Boxdivision.Text = Convert.ToString(a3);
}

Você também pode gostar