- Yasaklandı
- #1
Banlı Üye
Herkese Merhaba
Bugün Sizlere C# Da Console Sayısal Loto Programlama İçin Kodlar Paylaşacagım.
C# Console programında hazırlanmış rastgele 6 tane sayı üretip ekranda gösteren sayısal loto programı
[CODE title="C# Console Sayısal Loto Kodları"]using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
{
Random rnd = new Random();
int[] rastgelesayi = new int[6];
for (int i = 0; i < 6; i++)
{
rastgelesayi = rnd.Next(1, 50);
}
Array.Sort(rastgelesayi);
for (int i = 0; i < 6; i++)
{
Console.Write(rastgelesayi + " ");
}
Console.ReadLine();
}
}
}[/CODE]