DARIMI27

Print a Deck of 52 Cards

Oct 28th, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. class PrintADeckOf52Cards
  2. {
  3.     static void Main()
  4.     {
  5.         string[] card = {"2","3","4","5","6","7","8","9","10","J","Q","K","A" };
  6.         string[] color = { "♣", "♦", "♥", "♠" };
  7.         for (int y = 0; y < card.Length; y++)
  8.         {
  9.             for (int i = 0; i < color.Length; i++)
  10.            
  11.                 Console.Write("{0}", (card[y] + color[i]));
  12.                 Console.WriteLine();    
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment