Created
July 25, 2015 07:21
-
-
Save MladenMladenov/1f6db4f4ad523faddb1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Globalization; | |
class PrintADeck | |
{ | |
static void Main() | |
{ | |
string[] cards = { "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "D", "K", "A" }; | |
string[] sign = { "\u2663", "\u2666", "\u2665", "\u2660" }; | |
for (int i = 0; i < cards.Length; i++) | |
{ | |
for (int j = 0; j < sign.Length; j++) | |
{ | |
Console.Write(cards[i].PadLeft(2, ' ') + sign[j].PadRight(1, ' ') + " "); | |
} | |
Console.WriteLine(); | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment