29 Kasım 2013 Cuma

C# da While Döngüsü

c#
c#
private void button1_Click(object sender, EventArgs e)
        {
            int a, n , c=0;
            a = Convert.ToInt32(textBox1.Text);
            while (n<=a)
            {
                c = n + c;
                label3.Text = c.ToString();
                n++;
            }
           

        }

0 yorum :

Yorum Gönder