21 Aralık 2013 Cumartesi

C # PROGRAMI İLE ÖRNEK SORULAR-10

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace arka_artırım
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int a = 15;
            int b = 205;
            MessageBox.Show("eski b=" + b);
            MessageBox.Show("eski a=" + a);
            b = ++a;
            MessageBox.Show("yeni b="     +b);
            MessageBox.Show("yeni a="   +a);
        }

        
    }
}


Hiç yorum yok: