c# |
private void button1_Click(object sender, EventArgs e)
{
int n, s = 1;
n = Convert.ToInt32(textBox1.Text);
while (s<=n)
{
listBox1.Items.Add(s.ToString());
s++;
}
}
0 yorum :
Yorum Gönder