30 Kasım 2016 Çarşamba

C# - Form Application İle İki Sayının Toplanıp Ekrana Yazdırılması


namespace Örnek4
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int sayi1, sayi2, top;
            sayi1 = Convert.ToInt32(textBox1.Text);
            sayi2 = Convert.ToInt32(textBox2.Text);
            top = sayi1 + sayi2;
            label3.Text = top.ToString();

        }
    }
}

Hiç yorum yok:

Yorum Gönder