Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class PrintADeck
- {
- static void Main()
- {
- for (int i = 2; i <= 14; i++)
- {
- for (int q = 0; q < 4; q++)
- {
- string[] colors = { "♣", "♦", "♥", "♠" };
- switch (i)
- {
- case 11: Console.Write("J" + colors[q] + " "); break;
- case 12: Console.Write("Q" + colors[q] + " "); break;
- case 13: Console.Write("K" + colors[q] + " "); break;
- case 14: Console.Write("A" + colors[q] + " "); break;
- default: Console.Write(i + colors[q] + " ");
- break;
- }
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement