private void button1_Click(object sender, EventArgs e)
{
double a, x, y;
x = Convert.ToInt32(textBox1.Text);
y = Convert.ToInt32(textBox2.Text);
if (x>y)
{
a = (x * x - y * y) / (x + 3);
label4.Text = Convert.ToString(a);
}
else
{
a = (y * y - x * x) / y;
label4.Text = Convert.ToString(a);
}
c# |
0 yorum :
Yorum Gönder