Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. using System;
  2.  
  3. class PrintADeck
  4. {
  5. static void Main()
  6. {
  7. for (int i = 2; i <= 14; i++)
  8. {
  9. for (int q = 0; q < 4; q++)
  10. {
  11. string[] colors = { "♣", "♦", "♥", "♠" };
  12.  
  13. switch (i)
  14. {
  15. case 11: Console.Write("J" + colors[q] + " "); break;
  16. case 12: Console.Write("Q" + colors[q] + " "); break;
  17. case 13: Console.Write("K" + colors[q] + " "); break;
  18. case 14: Console.Write("A" + colors[q] + " "); break;
  19. default: Console.Write(i + colors[q] + " ");
  20. break;
  21. }
  22. }
  23. Console.WriteLine();
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement