kodun çalışıyor listbox ekle daha etkili olur

int i;

for (i = 0; i <= 50; i++)
{
if (i % 2 == 0)
continue;

listBox1.Items.Add(i);
}