Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Cards2
- {
- class Program
- {
- // Main method
- static void Main(string[] args)
- {
- string[] values = { "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K" };
- byte[] suits = { 3, 5, 4, 6 };
- Console.WriteLine("\n\n");
- for (int j = 0; j < suits.Length; j++)
- {
- Console.Write("\t");
- for (int i = 0; i < values.Length; i++)
- {
- if (suits[j] == 5 || suits[j] == 6) Console.ForegroundColor = ConsoleColor.Black;
- else Console.ForegroundColor = ConsoleColor.Red;
- Console.BackgroundColor = ConsoleColor.White;
- Console.Write("|{0}{1}|", values[i], (char)suits[j]);
- Console.ResetColor();
- Console.Write(" ");
- }
- Console.WriteLine("\n");
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement