C# Matrix Yapımı

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Admin
Katılım
5 Ara 2017
Mesajlar
3,609
Çözümler
88
Tepki puanı
8,277
Ödüller
21
8 HİZMET YILI







C# kullanarak Console'dan nasıl Matrix yapılacağını göstericem.

İlk olarak bir Console Projesi oluşturun.

Ardından Şu kodları direk olarak yapıştırın ;

C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

Ardından alt tarafta vereceğim kodu yeşil yazılı yere yapıştırın.



Matrix Kod :

C#:
Console.ForegroundColor = ConsoleColor.Green;
            Random RDN = new Random();
            int sayı;
            int art = 0;



            for (int i = 0; ; i++)
            {
                sayı = RDN.Next(0, 10);
                Console.Write(sayı);
                Thread.Sleep(20);
                art++;
                Console.ForegroundColor = ConsoleColor.Green;
                if (art == 10)
                {
                    Console.ForegroundColor = ConsoleColor.White;

                    art = 0;


                }


                Console.Write(new string('\t', sayı));

            }
            Console.ReadKey();

Kodların Hepsi ;
C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Matrix
{
    class Program
    {
        static **** Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Random RDN = new Random();
            int sayı;
            int art = 0;



            for (int i = 0; ; i++)
            {
                sayı = RDN.Next(0, 10);
                Console.Write(sayı);
                Thread.Sleep(20);
                art++;
                Console.ForegroundColor = ConsoleColor.Green;
                if (art == 10)
                {
                    Console.ForegroundColor = ConsoleColor.White;

                    art = 0;


                }


                Console.Write(new string('\t', sayı));

            }
            Console.ReadKey();
        }
    }
}


 
Bilinmiyor
Efsane Üye
Katılım
26 Şub 2016
Mesajlar
4,271
Çözümler
3
Tepki puanı
792
Ödüller
13
10 HİZMET YILI
hacker arka plan full hd 1080p
 
Uzman Üye
Katılım
7 Mar 2018
Mesajlar
294
Çözümler
1
Tepki puanı
62
Ödüller
4
Yaş
27
8 HİZMET YILI
gayet başarılı
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...