{
{
{
int x;
x = Convert.ToInt32(textBox1.Text);
Random r = new Random();
for (int i = 0; i < x; i++)
{
int a;
a = r.Next(100, 200);
listBox1.Items.Add(a);
if (a % 5 == 0)
listBox2.Items.Add(a);
}
}
}
Bu şekilde yaptım ama listbox2'de boş ekran geliyor. Yanlışım nedir...