21 Aralık 2013 Cumartesi

C # PROGRAMI İLE ÖRNEK SORULAR-1


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

namespace büyük_küçük
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            int x,y;
            x=Convert.ToInt16(textBox1.Text);
            y=Convert.ToInt16(textBox2.Text);
            if (x > y)
            {
                textBox3.Text = x.ToString();
            }
            else
            {
                textBox3.Text = y.ToString();
            }
        }
    }

}

Hiç yorum yok: