c# |
private void button1_Click(object sender, EventArgs e)
{
int x, y, a, b;
x = Convert.ToInt32(textBox1.Text);
y = Convert.ToInt32(textBox2.Text);
if (x<y)
{
a = x;
b = y;
}
else if (x>y)
{
a = y;
b = x;
}
while (x<=y)
{
listBox1.Items.Add(x);
x = x + 2;
}
}
0 yorum :
Yorum Gönder