Advertisement
dimipan80

6.4Loops_PrintStandartDeckOf52PlayCards

Mar 23rd, 2014
1,424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 KB | None | 0 0
  1. using System;
  2.  
  3. class PrintADeckOfPlayCards
  4. {
  5.     static void Main ()
  6.     {
  7.         string [] facesCards = { "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A" };
  8.         string [] colorsCards = { " of CLUBS", " of DIAMONDS", " of HEARTS", " of SPADES" };
  9.  
  10.         Console.WriteLine("Standart deck of 52 play cards contain:");
  11.         Console.WriteLine();
  12.         foreach (var face in facesCards)
  13.         {
  14.             foreach (var color in colorsCards)
  15.             {
  16.                 Console.Write("{0,3}{1} ", face, color);
  17.             }
  18.             Console.WriteLine();
  19.         }
  20.         Console.ReadLine();
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement