Advertisement
svetoslavbozov

[C#-1.6.4] Cards

Dec 30th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1. /*Напишете програма, която отпечатва всички възможни карти от стан-
  2. дартно тесте карти без джокери (имаме 52 карти: 4 бои по 13 карти).
  3. */
  4. using System;
  5.  
  6. class Cards
  7. {
  8.     static void Main()
  9.     {
  10.         string[] colors = {"Clubs", "Diamonts", "Hearts", "Spades"};
  11.         string[] cards = {"Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"};
  12.  
  13.         for (int i = 0; i < 4; i++)
  14.         {
  15.             Console.WriteLine(colors[i]);
  16.            
  17.             for (int j = 0; j < 13; j++)
  18.             {
  19.                 Console.WriteLine(cards[j]);
  20.             }
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement