C# Varmısın Yokmusun Programı

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

namespace WindowsApplication6

{

    public partial class Form1 : Form

    {

        int[] sayi = new int[20];

        Random rnd = new Random();

        public Form1()

        {

            InitializeComponent();

        }

//Form

     private void Form1_Load(object sender, EventArgs e)

        {

            int i, j, sayac;

            Random rnd = new Random();

            for (i = 0; i <= 19; i++)

                sayi[i] = rnd.Next(1, 21);

            sayac = 1;

            while(sayac==1)

            {

                sayac=0;

                for (i = 0; i <= 18; i++)

                {

                    for (j = i + 1; j <= 19; j++)

                    {

                        if (sayi[i] == sayi[j])

                        {

                            sayac = sayac + 1;

                            sayi[j] = rnd.Next(1, 21);

                            break;

                        }

                    }

                    if (sayac == 1)

                        break;

                }

            }

        }

//Buton 1

        private void button1_Click(object sender, EventArgs e)

        {

            int i =0;

            {

                if (sayi[0] == 1)

                    button1.Text = “1 TL”;

                if (sayi[0] == 2)

                    button1.Text = “2 TL”;

                if (sayi[0] == 3)

                    button1.Text = “5 TL”;

                if (sayi[0] == 4)

                    button1.Text = “10 TL”;

                if (sayi[0] == 5)

                    button1.Text = “15 TL”;

                if (sayi[0] == 6)

                    button1.Text = “100 TL”;

                if (sayi[0] == 7)

                    button1.Text = “250 TL”;

                if (sayi[0] == 8)

                    button1.Text = “500 TL”;

                if (sayi[0] == 9)

                    button1.Text = “1000 TL”;

                if (sayi[0] == 10)

                    button1.Text = “2000 TL”;

                if (sayi[0] == 11)

                    button1.Text = “2500 TL”;

                if (sayi[0] == 12)

                    button1.Text = “5000 TL”;

                if (sayi[0] == 13)

                    button1.Text = “30000 TL”;

                if (sayi[0] == 14)

                    button1.Text = “40000 TL”;

                if (sayi[0] == 15)

                    button1.Text = “50000 TL”;

                if (sayi[0] == 16)

                    button1.Text = “70000 TL”;

                if (sayi[0] == 17)

                    button1.Text = “125000 TL”;

                if (sayi[0] == 18)

                    button1.Text = “250000 TL”;

                if (sayi[0] == 19)

                    button1.Text = “500000 TL”;

                if (sayi[0] == 20)

                    button1.Text = “1000000 TL”;

            }

        }

//Buton 2

        private void button2_Click(object sender, EventArgs e)

        {

            int i = 1;

            {

                if (sayi[1] == 1)

                    button.Text = “1 TL”;

                if (sayi[1] == 2)

                    button2.Text = “2 TL”;

                if (sayi[1] == 3)

                    button2.Text = “5 TL”;

                if (sayi[1] == 4)

                    button2.Text = “10 TL”;

                if (sayi[1] == 5)

                    button2.Text = “15 TL”;

                if (sayi[1] == 6)

                    button2.Text = “100 TL”;

                if (sayi[1] == 7)

                    button2.Text = “250 TL”;

                if (sayi[1] == 8)

                    button2.Text = “500 TL”;

                if (sayi[1] == 9)

                    button2.Text = “1000 TL”;

                if (sayi[1] == 10)

                    button2.Text = “2000 TL”;

                if (sayi[1] == 11)

                    button2.Text = “2500 TL”;

                if (sayi[1] == 12)

                    button2.Text = “5000 TL”;

                if (sayi[1] == 13)

                    button2.Text = “30000 TL”;

                if (sayi[1] == 14)

                    button2.Text = “40000 TL”;

                if (sayi[1] == 15)

                    button2.Text = “50000 TL”;

                if (sayi[1] == 16)

                    button2.Text = “70000 TL”;

                if (sayi[1] == 17)

                    button2.Text = “125000 TL”;

                if (sayi[1] == 18)

                    button2.Text = “250000 TL”;

                if (sayi[1] == 19)

                    button2.Text = “500000 TL”;

                if (sayi[1] == 20)

                    button2.Text = “1000000 TL”;

            }

        }

//Buton 3

        private void button3_Click(object sender, EventArgs e)

        {

            int i = 2;

            {

                if (sayi[2] == 1)

                    button3.Text = “1 TL”;

                if (sayi[2] == 2)

                    button3.Text = “2 TL”;

                if (sayi[2] == 3)

                    button3.Text = “5 TL”;

                if (sayi[2] == 4)

                    button3.Text = “10 TL”;

                if (sayi[2] == 5)

                    button3.Text = “15 TL”;

                if (sayi[2] == 6)

                    button3.Text = “100 TL”;

                if (sayi[2] == 7)

                    button3.Text = “250 TL”;

                if (sayi[2] == 8)

                    button3.Text = “500 TL”;

                if (sayi[2] == 9)

                    button3.Text = “1000 TL”;

                if (sayi[2] == 10)

                    button3.Text = “2000 TL”;

                if (sayi[2] == 11)

                    button3.Text = “2500 TL”;

                if (sayi[2] == 12)

                    button3.Text = “5000 TL”;

                if (sayi[2] == 13)

                    button3.Text = “30000 TL”;

                if (sayi[2] == 14)

                    button3.Text = “40000 TL”;

                if (sayi[2] == 15)

                    button3.Text = “50000 TL”;

                if (sayi[2] == 16)

                    button3.Text = “70000 TL”;

                if (sayi[2] == 17)

                    button3.Text = “125000 TL”;

                if (sayi[2] == 18)

                    button3.Text = “250000 TL”;

                if (sayi[2] == 19)

                    button3.Text = “500000 TL”;

                if (sayi[2] == 20)

                    button3.Text = “1000000 TL”;

            }

        }

//Buton 4

        private void button4_Click(object sender, EventArgs e)

        {

            int i = 3;

            {

                if (sayi[3] == 1)

                    button4.Text = “1 TL”;

                if (sayi[3] == 2)

                    button4.Text = “2 TL”;

                if (sayi[3] == 3)

                    button4.Text = “5 TL”;

                if (sayi[3] == 4)

                    button4.Text = “10 TL”;

                if (sayi[3] == 5)

                    button4.Text = “15 TL”;

                if (sayi[3] == 6)

                    button4.Text = “100 TL”;

                if (sayi[3] == 7)

                    button4.Text = “250 TL”;

                if (sayi[3] == 8)

                    button4.Text = “500 TL”;

                if (sayi[3] == 9)

                    button4.Text = “1000 TL”;

                if (sayi[3] == 10)

                    button4.Text = “2000 TL”;

                if (sayi[3] == 11)

                    button4.Text = “2500 TL”;

                if (sayi[3] == 12)

                    button4.Text = “5000 TL”;

                if (sayi[3] == 13)

                    button4.Text = “30000 TL”;

                if (sayi[3] == 14)

                    button4.Text = “40000 TL”;

                if (sayi[3] == 15)

                    button4.Text = “50000 TL”;

                if (sayi[3] == 16)

                    button4.Text = “70000 TL”;

                if (sayi[3] == 17)

                    button4.Text = “125000 TL”;

                if (sayi[3] == 18)

                    button4.Text = “250000 TL”;

                if (sayi[3] == 19)

                    button4.Text = “500000 TL”;

                if (sayi[3] == 20)

                    button4.Text = “1000000 TL”;

            }

        }

//Buton 5

        private void button5_Click(object sender, EventArgs e)

        {

            int i = 4;

            {

                if (sayi[4] == 1)

                    button5.Text = “1 TL”;

                if (sayi[4] == 2)

                    button5.Text = “2 TL”;

                if (sayi[4] == 3)

                    button5.Text = “5 TL”;

                if (sayi[4] == 4)

                    button5.Text = “10 TL”;

                if (sayi[4] == 5)

                    button5.Text = “15 TL”;

                if (sayi[4] == 6)

                    button5.Text = “100 TL”;

                if (sayi[4] == 7)

                    button5.Text = “250 TL”;

                if (sayi[4] == 8)

                    button5.Text = “500 TL”;

                if (sayi[4] == 9)

                    button5.Text = “1000 TL”;

                if (sayi[4] == 10)

                    button5.Text = “2000 TL”;

                if (sayi[4] == 11)

                    button5.Text = “2500 TL”;

                if (sayi[4] == 12)

                    button5.Text = “5000 TL”;

                if (sayi[4] == 13)

                    button5.Text = “30000 TL”;

                if (sayi[4] == 14)

                    button5.Text = “40000 TL”;

                if (sayi[4] == 15)

                    button5.Text = “50000 TL”;

                if (sayi[4] == 16)

                    button5.Text = “70000 TL”;

                if (sayi[4] == 17)

                    button5.Text = “125000 TL”;

                if (sayi[4] == 18)

                    button5.Text = “250000 TL”;

                if (sayi[4] == 19)

                    button5.Text = “500000 TL”;

                if (sayi[4] == 20)

                    button5.Text = “1000000 TL”;

            }

        }

//Buton 6

        private void button6_Click(object sender, EventArgs e)

        {

            int i = 5;

                        {

                if (sayi[5] == 1)

                    button6.Text = “1 TL”;

                if (sayi[5] == 2)

                    button6.Text = “2 TL”;

                if (sayi[5] == 3)

                    button6.Text = “5 TL”;

                if (sayi[5] == 4)

                    button10.Text = “10 TL”;

                if (sayi[5] == 5)

                    button6.Text = “15 TL”;

                if (sayi[5] == 6)

                    button6.Text = “100 TL”;

                if (sayi[5] == 7)

                    button6.Text = “250 TL”;

                if (sayi[5] == 8)

                    button6.Text = “500 TL”;

                if (sayi[5] == 9)

                    button6.Text = “1000 TL”;

                if (sayi[5] == 10)

                    button6.Text = “2000 TL”;

                if (sayi[5] == 11)

                    button6.Text = “2500 TL”;

                if (sayi[5] == 12)

                    button6.Text = “5000 TL”;

                if (sayi[5] == 13)

                    button6.Text = “30000 TL”;

                if (sayi[5] == 14)

                    button6.Text = “40000 TL”;

                if (sayi[5] == 15)

                    button6.Text = “50000 TL”;

                if (sayi[5] == 16)

                    button6.Text = “70000 TL”;

                if (sayi[5] == 17)

                    button6.Text = “125000 TL”;

                if (sayi[5] == 18)

                    button6.Text = “250000 TL”;

                if (sayi[5] == 19)

                    button6.Text = “500000 TL”;

                if (sayi[5] == 20)

                    button6.Text = “1000000 TL”;

            }

        }

//Buton 7

        private void button7_Click(object sender, EventArgs e)

        {

            int i = 6;

            {

                if (sayi[6] == 1)

                    button7.Text = “1 TL”;

                if (sayi[6] == 2)

                    button7.Text = “2 TL”;

                if (sayi[6] == 3)

                    button7.Text = “5 TL”;

                if (sayi[6] == 4)

                    button7.Text = “10 TL”;

                if (sayi[6] == 5)

                    button7.Text = “15 TL”;

                if (sayi[6] == 6)

                    button7.Text = “100 TL”;

                if (sayi[6] == 7)

                    button7.Text = “250 TL”;

                if (sayi[6] == 8)

                    button7.Text = “500 TL”;

                if (sayi[6] == 9)

                    button7.Text = “1000 TL”;

                if (sayi[6] == 10)

                    button7.Text = “2000 TL”;

                if (sayi[6] == 11)

                    button7.Text = “2500 TL”;

                if (sayi[6] == 12)

                    button7.Text = “5000 TL”;

                if (sayi[6] == 13)

                    button7.Text = “30000 TL”;

                if (sayi[6] == 14)

                    button7.Text = “40000 TL”;

                if (sayi[6] == 15)

                    button7.Text = “50000 TL”;

                if (sayi[6] == 16)

                    button7.Text = “70000 TL”;

                if (sayi[6] == 17)

                    button7.Text = “125000 TL”;

                if (sayi[6] == 18)

                    button7.Text = “250000 TL”;

                if (sayi[6] == 19)

                    button7.Text = “500000 TL”;

                if (sayi[6] == 20)

                    button7.Text = “1000000 TL”;

            }

        }

//buton 8

        private void button8_Click(object sender, EventArgs e)

        {

            int i = 7;

            {

                if (sayi[7] == 1)

                    button8.Text = “1 TL”;

                if (sayi[7] == 2)

                    button8.Text = “2 TL”;

                if (sayi[7] == 3)

                    button8.Text = “5 TL”;

                if (sayi[7] == 4)

                    button8.Text = “10 TL”;

                if (sayi[7] == 5)

                    button8.Text = “15 TL”;

                if (sayi[7] == 6)

                    button8.Text = “100 TL”;

                if (sayi[7] == 7)

                    button8.Text = “250 TL”;

                if (sayi[7] == 8)

                    button8.Text = “500 TL”;

                if (sayi[7] == 9)

                    button8.Text = “1000 TL”;

                if (sayi[7] == 10)

                    button8.Text = “2000 TL”;

                if (sayi[7] == 11)

                    button8.Text = “2500 TL”;

                if (sayi[7] == 12)

                    button8.Text = “5000 TL”;

                if (sayi[7] == 13)

                    button8.Text = “30000 TL”;

                if (sayi[7] == 14)

                    button8.Text = “40000 TL”;

                if (sayi[7] == 15)

                    button8.Text = “50000 TL”;

                if (sayi[7] == 16)

                    button8.Text = “70000 TL”;

                if (sayi[7] == 17)

                    button8.Text = “125000 TL”;

                if (sayi[7] == 18)

                    button8.Text = “250000 TL”;

                if (sayi[7] == 19)

                    button8.Text = “500000 TL”;

                if (sayi[7] == 20)

                    button8.Text = “1000000 TL”;

            }

        }

//buton 9

        private void button9_Click(object sender, EventArgs e)

        {

            int i = 8;

            {

                if (sayi[8] == 1)

                    button9.Text = “1 TL”;

                if (sayi[8] == 2)

                    button9.Text = “2 TL”;

                if (sayi[8] == 3)

                    button9.Text = “5 TL”;

                if (sayi[8] == 4)

                    button9.Text = “10 TL”;

                if (sayi[8] == 5)

                    button9.Text = “15 TL”;

                if (sayi[8] == 6)

                    button9.Text = “100 TL”;

                if (sayi[8] == 7)

                    button9.Text = “250 TL”;

                if (sayi[8] == 8)

                    button9.Text = “500 TL”;

                if (sayi[8] == 9)

                    button9.Text = “1000 TL”;

                if (sayi[8] == 10)

                    button9.Text = “2000 TL”;

                if (sayi[8] == 11)

                    button9.Text = “2500 TL”;

                if (sayi[8] == 12)

                    button9.Text = “5000 TL”;

                if (sayi[8] == 13)

                    button9.Text = “30000 TL”;

                if (sayi[8] == 14)

                    button9.Text = “40000 TL”;

                if (sayi[8] == 15)

                    button9.Text = “50000 TL”;

                if (sayi[8] == 16)

                    button9.Text = “70000 TL”;

                if (sayi[8] == 17)

                    button9.Text = “125000 TL”;

                if (sayi[8] == 18)

                    button9.Text = “250000 TL”;

                if (sayi[8] == 19)

                    button9.Text = “500000 TL”;

                if (sayi[8] == 20)

                    button9.Text = “1000000 TL”;

            }

        }

//buton 10

        private void button10_Click(object sender, EventArgs e)

        {

            int i = 9;

            {

                if (sayi[9] == 1)

                    button10.Text = “1 TL”;

                if (sayi[9] == 2)

                    button10.Text = “2 TL”;

                if (sayi[9] == 3)

                    button10.Text = “5 TL”;

                if (sayi[9] == 4)

                    button10.Text = “10 TL”;

                if (sayi[9] == 5)

                    button10.Text = “15 TL”;

                if (sayi[9] == 6)

                    button10.Text = “100 TL”;

                if (sayi[9] == 7)

                    button10.Text = “250 TL”;

                if (sayi[9] == 8)

                    button10.Text = “500 TL”;

                if (sayi[9] == 9)

                    button10.Text = “1000 TL”;

                if (sayi[9] == 10)

                    button10.Text = “2000 TL”;

                if (sayi[9] == 11)

                    button10.Text = “2500 TL”;

                if (sayi[9] == 12)

                    button10.Text = “5000 TL”;

                if (sayi[9] == 13)

                    button10.Text = “30000 TL”;

                if (sayi[9] == 14)

                    button10.Text = “40000 TL”;

                if (sayi[9] == 15)

                    button10.Text = “50000 TL”;

                if (sayi[9] == 16)

                    button10.Text = “70000 TL”;

                if (sayi[9] == 17)

                    button10.Text = “125000 TL”;

                if (sayi[9] == 18)

                    button10.Text = “250000 TL”;

                if (sayi[9] == 19)

                    button10.Text = “500000 TL”;

                if (sayi[9] == 20)

                    button10.Text = “1000000 TL”;

            }

        }

//buton 11

        private void button11_Click(object sender, EventArgs e)

        {

            int i = 10;

            {

                if (sayi[10] == 1)

                    button11.Text = “1 TL”;

                if (sayi[10] == 2)

                    button11.Text = “2 TL”;

                if (sayi[10] == 3)

                    button11.Text = “5 TL”;

                if (sayi[10] == 4)

                    button11.Text = “10 TL”;

                if (sayi[10] == 5)

                    button11.Text = “15 TL”;

                if (sayi[10] == 6)

                    button11.Text = “100 TL”;

                if (sayi[10] == 7)

                    button11.Text = “250 TL”;

                if (sayi[10] == 8)

                    button11.Text = “500 TL”;

                if (sayi[10] == 9)

                    button11.Text = “1000 TL”;

                if (sayi[10] == 10)

                    button11.Text = “2000 TL”;

                if (sayi[10] == 11)

                    button11.Text = “2500 TL”;

                if (sayi[10] == 12)

                    button11.Text = “5000 TL”;

                if (sayi[10] == 13)

                    button11.Text = “30000 TL”;

                if (sayi[10] == 14)

                    button11.Text = “40000 TL”;

                if (sayi[10] == 15)

                    button11.Text = “50000 TL”;

                if (sayi[10] == 16)

                    button11.Text = “70000 TL”;

                if (sayi[10] == 17)

                    button11.Text = “125000 TL”;

                if (sayi[10] == 18)

                    button11.Text = “250000 TL”;

                if (sayi[10] == 19)

                    button11.Text = “500000 TL”;

                if (sayi[10] == 20)

                    button11.Text = “1000000 TL”;

            }

        }

//buton 12

        private void button12_Click(object sender, EventArgs e)

        {

            int i = 11;

            {

                if (sayi[11] == 1)

                    button12.Text = “1 TL”;

                if (sayi[11] == 2)

                    button12.Text = “2 TL”;

                if (sayi[11] == 3)

                    button12.Text = “5 TL”;

                if (sayi[11] == 4)

                    button12.Text = “10 TL”;

                if (sayi[11] == 5)

                    button12.Text = “15 TL”;

                if (sayi[11] == 6)

                    button12.Text = “100 TL”;

                if (sayi[11] == 7)

                    button12.Text = “250 TL”;

                if (sayi[11] == 8)

                    button12.Text = “500 TL”;

                if (sayi[11] == 9)

                    button12.Text = “1000 TL”;

                if (sayi[11] == 10)

                    button12.Text = “2000 TL”;

                if (sayi[11] == 11)

                    button12.Text = “2500 TL”;

                if (sayi[11] == 12)

                    button12.Text = “5000 TL”;

                if (sayi[11] == 13)

                    button12.Text = “30000 TL”;

                if (sayi[11] == 14)

                    button12.Text = “40000 TL”;

                if (sayi[11] == 15)

                    button12.Text = “50000 TL”;

                if (sayi[11] == 16)

                    button12.Text = “70000 TL”;

                if (sayi[11] == 17)

                    button12.Text = “125000 TL”;

                if (sayi[11] == 18)

                    button12.Text = “250000 TL”;

                if (sayi[11] == 19)

                    button12.Text = “500000 TL”;

                if (sayi[11] == 20)

                    button12.Text = “1000000 TL”;

            }

        }

//buton 13

        private void button13_Click(object sender, EventArgs e)

        {

            int i = 12;

            {

                if (sayi[12] == 1)

                    button13.Text = “1 TL”;

                if (sayi[12] == 2)

                    button13.Text = “2 TL”;

                if (sayi[12] == 3)

                    button13.Text = “5 TL”;

                if (sayi[12] == 4)

                    button13.Text = “10 TL”;

                if (sayi[12] == 5)

                    button13.Text = “15 TL”;

                if (sayi[12] == 6)

                    button13.Text = “100 TL”;

                if (sayi[12] == 7)

                    button13.Text = “250 TL”;

                if (sayi[12] == 8)

                    button13.Text = “500 TL”;

                if (sayi[12] == 9)

                    button13.Text = “1000 TL”;

                if (sayi[12] == 10)

                    button13.Text = “2000 TL”;

                if (sayi[12] == 11)

                    button13.Text = “2500 TL”;

                if (sayi[12] == 12)

                    button13.Text = “5000 TL”;

                if (sayi[12] == 13)

                    button13.Text = “30000 TL”;

                if (sayi[12] == 14)

                    button13.Text = “40000 TL”;

                if (sayi[12] == 15)

                    button13.Text = “50000 TL”;

                if (sayi[12] == 16)

                    button13.Text = “70000 TL”;

                if (sayi[12] == 17)

                    button13.Text = “125000 TL”;

                if (sayi[12] == 18)

                    button13.Text = “250000 TL”;

                if (sayi[12] == 19)

                    button13.Text = “500000 TL”;

                if (sayi[12] == 20)

                    button13.Text = “1000000 TL”;

            }

        }

//buton 14

        private void button14_Click(object sender, EventArgs e)

        {

            int i = 13;

            {

                if (sayi[13] == 1)

                    button14.Text = “1 TL”;

                if (sayi[13] == 2)

                    button14.Text = “2 TL”;

                if (sayi[13] == 3)

                    button14.Text = “5 TL”;

                if (sayi[13] == 4)

                    button14.Text = “10 TL”;

                if (sayi[13] == 5)

                    button14.Text = “15 TL”;

                if (sayi[13] == 6)

                    button14.Text = “100 TL”;

                if (sayi[13] == 7)

                    button14.Text = “250 TL”;

                if (sayi[13] == 8)

                    button14.Text = “500 TL”;

                if (sayi[13] == 9)

                    button14.Text = “1000 TL”;

                if (sayi[13] == 10)

                    button14.Text = “2000 TL”;

                if (sayi[13] == 11)

                    button14.Text = “2500 TL”;

                if (sayi[13] == 12)

                    button14.Text = “5000 TL”;

                if (sayi[13] == 13)

                    button14.Text = “30000 TL”;

                if (sayi[13] == 14)

                    button14.Text = “40000 TL”;

                if (sayi[13] == 15)

                    button14.Text = “50000 TL”;

                if (sayi[13] == 16)

                    button14.Text = “70000 TL”;

                if (sayi[13] == 17)

                    button14.Text = “125000 TL”;

                if (sayi[13] == 18)

                    button14.Text = “250000 TL”;

                if (sayi[13] == 19)

                    button14.Text = “500000 TL”;

                if (sayi[13] == 20)

                    button14.Text = “1000000 TL”;

            }

        }

//buton 15

        private void button15_Click(object sender, EventArgs e)

        {

            int i = 14;

            {

                if (sayi[14] == 1)

                    button15.Text = “1 TL”;

                if (sayi[14] == 2)

                    button15.Text = “2 TL”;

                if (sayi[14] == 3)

                    button15.Text = “5 TL”;

                if (sayi[14] == 4)

                    button15.Text = “10 TL”;

                if (sayi[14] == 5)

                    button15.Text = “15 TL”;

                if (sayi[14] == 6)

                    button15.Text = “100 TL”;

                if (sayi[14] == 7)

                    button15.Text = “250 TL”;

                if (sayi[14] == 8)

                    button15.Text = “500 TL”;

                if (sayi[14] == 9)

                    button15.Text = “1000 TL”;

                if (sayi[14] == 10)

                    button15.Text = “2000 TL”;

                if (sayi[14] == 11)

                    button15.Text = “2500 TL”;

                if (sayi[14] == 12)

                    button15.Text = “5000 TL”;

                if (sayi[14] == 13)

                    button15.Text = “30000 TL”;

                if (sayi[14] == 14)

                    button15.Text = “40000 TL”;

                if (sayi[14] == 15)

                    button15.Text = “50000 TL”;

                if (sayi[14] == 16)

                    button15.Text = “70000 TL”;

                if (sayi[14] == 17)

                    button15.Text = “125000 TL”;

                if (sayi[14] == 18)

                    button15.Text = “250000 TL”;

                if (sayi[14] == 19)

                    button15.Text = “500000 TL”;

                if (sayi[14] == 20)

                    button15.Text = “1000000 TL”;

            }

        }

//buton 16

        private void button16_Click(object sender, EventArgs e)

        {

            int i = 15;

            {

                if (sayi[15] == 1)

                    button16.Text = “1 TL”;

                if (sayi[15] == 2)

                    button16.Text = “2 TL”;

                if (sayi[15] == 3)

                    button16.Text = “5 TL”;

                if (sayi[15] == 4)

                    button16.Text = “10 TL”;

                if (sayi[15] == 5)

                    button16.Text = “15 TL”;

                if (sayi[15] == 6)

                    button16.Text = “100 TL”;

                if (sayi[15] == 7)

                    button16.Text = “250 TL”;

                if (sayi[15] == 8)

                    button16.Text = “500 TL”;

                if (sayi[15] == 9)

                    button16.Text = “1000 TL”;

                if (sayi[15] == 10)

                    button16.Text = “2000 TL”;

                if (sayi[15] == 11)

                    button16.Text = “2500 TL”;

                if (sayi[15] == 12)

                    button16.Text = “5000 TL”;

                if (sayi[15] == 13)

                    button16.Text = “30000 TL”;

                if (sayi[15] == 14)

                    button16.Text = “40000 TL”;

                if (sayi[15] == 15)

                    button16.Text = “50000 TL”;

                if (sayi[15] == 16)

                    button16.Text = “70000 TL”;

                if (sayi[15] == 17)

                    button16.Text = “125000 TL”;

                if (sayi[15] == 18)

                    button16.Text = “250000 TL”;

                if (sayi[15] == 19)

                    button16.Text = “500000 TL”;

                if (sayi[15] == 20)

                    button16.Text = “1000000 TL”;

            }

        }

//buton 17

        private void button17_Click(object sender, EventArgs e)

        {

            int i = 16;

            {

                if (sayi[16] == 1)

                    button17.Text = “1 TL”;

                if (sayi[16] == 2)

                    button17.Text = “2 TL”;

                if (sayi[16] == 3)

                    button17.Text = “5 TL”;

                if (sayi[16] == 4)

                    button17.Text = “10 TL”;

                if (sayi[16] == 5)

                    button17.Text = “15 TL”;

                if (sayi[16] == 6)

                    button17.Text = “100 TL”;

                if (sayi[16] == 7)

                    button17.Text = “250 TL”;

                if (sayi[16] == 8)

                    button17.Text = “500 TL”;

                if (sayi[16] == 9)

                    button17.Text = “1000 TL”;

                if (sayi[16] == 10)

                    button17.Text = “2000 TL”;

                if (sayi[16] == 11)

                    button17.Text = “2500 TL”;

                if (sayi[16] == 12)

                    button17.Text = “5000 TL”;

                if (sayi[16] == 13)

                    button17.Text = “30000 TL”;

                if (sayi[16] == 14)

                    button17.Text = “40000 TL”;

                if (sayi[16] == 15)

                    button17.Text = “50000 TL”;

                if (sayi[16] == 16)

                    button17.Text = “70000 TL”;

                if (sayi[16] == 17)

                    button17.Text = “125000 TL”;

                if (sayi[16] == 18)

                    button17.Text = “250000 TL”;

                if (sayi[16] == 19)

                    button17.Text = “500000 TL”;

                if (sayi[16] == 20)

                    button17.Text = “1000000 TL”;

            }

        }

//buton 18

        private void button18_Click(object sender, EventArgs e)

        {

            int i = 17;

            {

                if (sayi[17] == 1)

                    button18.Text = “1 TL”;

                if (sayi[17] == 2)

                    button18.Text = “2 TL”;

                if (sayi[17] == 3)

                    button18.Text = “5 TL”;

                if (sayi[17] == 4)

                    button18.Text = “10 TL”;

                if (sayi[17] == 5)

                    button18.Text = “15 TL”;

                if (sayi[17] == 6)

                    button18.Text = “100 TL”;

                if (sayi[17] == 7)

                    button18.Text = “250 TL”;

                if (sayi[17] == 8)

                    button18.Text = “500 TL”;

                if (sayi[17] == 9)

                    button18.Text = “1000 TL”;

                if (sayi[17] == 10)

                    button18.Text = “2000 TL”;

                if (sayi[17] == 11)

                    button18.Text = “2500 TL”;

                if (sayi[17] == 12)

                    button18.Text = “5000 TL”;

                if (sayi[17] == 13)

                    button18.Text = “30000 TL”;

                if (sayi[17] == 14)

                    button18.Text = “40000 TL”;

                if (sayi[17] == 15)

                    button18.Text = “50000 TL”;

                if (sayi[17] == 16)

                    button18.Text = “70000 TL”;

                if (sayi[17] == 17)

                    button18.Text = “125000 TL”;

                if (sayi[17] == 18)

                    button18.Text = “250000 TL”;

                if (sayi[17] == 19)

                    button18.Text = “500000 TL”;

                if (sayi[17] == 20)

                    button18.Text = “1000000 TL”;

            }

        }

//buton 19

        private void button19_Click(object sender, EventArgs e)

        {

            int i = 18;

            {

                if (sayi[18] == 1)

                    button19.Text = “1 TL”;

                if (sayi[18] == 2)

                    button19.Text = “2 TL”;

                if (sayi[18] == 3)

                    button19.Text = “5 TL”;

                if (sayi[18] == 4)

                    button19.Text = “10 TL”;

                if (sayi[18] == 5)

                    button19.Text = “15 TL”;

                if (sayi[18] == 6)

                    button19.Text = “100 TL”;

                if (sayi[18] == 7)

                    button19.Text = “250 TL”;

                if (sayi[18] == 8)

                    button19.Text = “500 TL”;

                if (sayi[18] == 9)

                    button19.Text = “1000 TL”;

                if (sayi[18] == 10)

                    button19.Text = “2000 TL”;

                if (sayi[18] == 11)

                    button19.Text = “2500 TL”;

                if (sayi[18] == 12)

                    button19.Text = “5000 TL”;

                if (sayi[18] == 13)

                    button19.Text = “30000 TL”;

                if (sayi[18] == 14)

                    button19.Text = “40000 TL”;

                if (sayi[18] == 15)

                    button19.Text = “50000 TL”;

                if (sayi[18] == 16)

                    button19.Text = “70000 TL”;

                if (sayi[18] == 17)

                    button19.Text = “125000 TL”;

                if (sayi[18] == 18)

                    button19.Text = “250000 TL”;

                if (sayi[18] == 19)

                    button19.Text = “500000 TL”;

                if (sayi[18] == 20)

                    button19.Text = “1000000 TL”;

            }

        }

//buton 20

        private void button20_Click(object sender, EventArgs e)

        {

            int i = 19;

            {

                if (sayi[19] == 1)

                    button20.Text = “1 TL”;

                if (sayi[19] == 2)

                    button20.Text = “2 TL”;

                if (sayi[19] == 3)

                    button20.Text = “5 TL”;

                if (sayi[19] == 4)

                    button20.Text = “10 TL”;

                if (sayi[19] == 5)

                    button20.Text = “15 TL”;

                if (sayi[19] == 6)

                    button20.Text = “100 TL”;

                if (sayi[19] == 7)

                    button20.Text = “250 TL”;

                if (sayi[19] == 8)

                    button20.Text = “500 TL”;

                if (sayi[19] == 9)

                    button20.Text = “1000 TL”;

                if (sayi[19] == 10)

                    button20.Text = “2000 TL”;

                if (sayi[19] == 11)

                    button20.Text = “2500 TL”;

                if (sayi[19] == 12)

                    button20.Text = “5000 TL”;

                if (sayi[19] == 13)

                    button20.Text = “30000 TL”;

                if (sayi[19] == 14)

                    button20.Text = “40000 TL”;

                if (sayi[19] == 15)

                    button20.Text = “50000 TL”;

                if (sayi[19] == 16)

                    button20.Text = “70000 TL”;

                if (sayi[19] == 17)

                    button20.Text = “125000 TL”;

                if (sayi[19] == 18)

                    button20.Text = “250000 TL”;

                if (sayi[19] == 19)

                    button20.Text = “500000 TL”;

                if (sayi[19] == 20)

                    button20.Text = “1000000 TL”;

            }

        }

     }

  }

Yazar: Sefahat

sefahat baltacı sitemizde 6 yazı eklemiş...

Share