protected void a_Click(object sender, EventArgs e)
{
int g = Convert.ToInt16(TextBox1.Text) + Convert.ToInt16(TextBox2.Text);
sonuc.Text = "sonuç=" + g;
}
protected void b_Click(object sender, EventArgs e)
{
int g = Convert.ToInt16(TextBox1.Text) - Convert.ToInt16(TextBox2.Text);
sonuc.Text = "sonuç=" + g;
}
protected void c_Click(object sender, EventArgs e)
{
int g = Convert.ToInt16(TextBox1.Text) * Convert.ToInt16(TextBox2.Text);
sonuc.Text = "sonuç=" + g;
}
protected void d_Click(object sender, EventArgs e)
{
int g = Convert.ToInt16(TextBox1.Text) / Convert.ToInt16(TextBox2.Text);
sonuc.Text = "sonuç=" + g;
}
protected void e_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
sonuc.Text = "";
}
İlgili