form1.cs

来自「Csharp source code with application」· CS 代码 · 共 35 行

CS
35
字号
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

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

        private void button1_Click(object sender, EventArgs e)
        {
            int sayi1 = 0, sayi2 = 0, sayi3 = 0, sayi4 = 0, sayi5 = 0, sayi6 = 0;
            Random rnd=new Random();

            sayi1 = rnd.Next(1, 50); //while yaz齪 tab+tab ile kod tamamlan齬

            sayi2 = rnd.Next(1, 50);
            while (sayi2 == sayi1)
            {
                sayi2 = rnd.Next(1, 50);
            }
            sayi3 = rnd.Next(1, 50);
            while ((sayi2 == sayi1) || (sayi3==sayi2))
            {
                sayi3 = rnd.Next(1, 50);
            }
            do //do...while ile kodlar齨 kontrol黱黱 yap齦madan 鏰l

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?