namespace WinFormsApp3 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { int baslangic, bitis, artis; baslangic = Convert.ToInt32(textBox1.Text); bitis = Convert.ToInt32(textBox2.Text); artis = Convert.ToInt32(textBox3.Text); int sayac = baslangic; while (sayac < bitis) { listBox1.Items.Add(sayac); sayac += artis; } } } }