0
Öncelikle 1 tane textbox,2 adet textbox ve 1 tanede başlat butonu ekliyoruz.
Daha sonra başlata tıklayıp bu kodları giriyoruz arkadaşlar.



int sayi;            sayi = Convert.ToInt32(textBox3.Text);

            for (int i = 1; i <sayi; i++)
            {
                if(i%2==0){

                    listBox1.Items.Add(i);
                }


                else if (i%2==1)
                {

                    listBox2.Items.Add(i);
                    
                }
                
            }

Yorum Gönder

 
Top