Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class PrintAllCardsWithoutJokers
- {
- static void Main()
- { //52 cards: 4 colors by 13 cards (2 3 4 5 6 7 8 9 10 J Q K A)
- //spade ♠, diamond ♦, club ♣, heart ♥
- string[] cardsColors = new string[4] { "♠", "♦", "♣", "♥" };
- string[] cards = new string[13] { "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A" };
- for (int i = 0; i <= 3; i++)
- {
- Console.WriteLine("\n");
- for (int j = 0; j <= 12; j++)
- {
- Console.Write("{0}{1} ", cardsColors[i], cards[j]);
- }
- }
- Console.WriteLine("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement