static void Main(string[] args) { int number; Cards cr = new Cards(); Console.ForegroundColor = ConsoleColor.Green; number = Convert.ToInt32(Console.ReadLine()); Console.WriteLine(cr.OutCards(number)); Console.ReadKey(); }
public Cards() { for (int i = 1; i <= 4; i++) for (int j = 2; j <= 21; j++) koloda[(i - 1) * 9 + (j - 5)] = new Cards(i, j); }