Krum_50

Print Deck of Cards

Apr 17th, 2021
938
339 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  using System;
  2.  using System.Collections.Generic;
  3.  using System.Linq;
  4.  using System.Text;
  5.  
  6. class Program
  7.         {
  8.             static void Main()
  9.             {
  10.                 string card = Console.ReadLine();
  11.                 if (card == "J")
  12.                 {
  13.                     for (int i = 2; i <= 10; i++)
  14.                     {
  15.                         Console.WriteLine($"{i} of spades, {i} of clubs, {i} of hearts, {i} of diamonds");
  16.                     }
  17.                     Console.WriteLine($"J of spades, J of clubs, J of hearts, J of diamonds");
  18.                     return;
  19.                 }
  20.                 if (card == "D")
  21.                 {
  22.                      for (int i = 2; i <= 10; i++)
  23.                 {
  24.                      Console.WriteLine($"{i} of spades, {i} of clubs, {i} of hearts, {i} of diamonds");
  25.                 }
  26.                      Console.WriteLine("J of spades, J of clubs, J of hearts, J of diamonds");
  27.                      Console.WriteLine("D of spades, D of clubs, D of hearts, D of diamonds");
  28.                      return;
  29.                 }
  30.                 if (card == "K")
  31.                 {
  32.                 for (int i = 2; i <= 10; i++)
  33.                 {
  34.                      Console.WriteLine($"{i} of spades, {i} of clubs, {i} of hearts, {i} of diamonds");
  35.                 }
  36.                      Console.WriteLine("J of spades, J of clubs, J of hearts, J of diamonds");
  37.                      Console.WriteLine("D of spades, D of clubs, D of hearts, D of diamonds");
  38.                      Console.WriteLine("K of spades, K of clubs, K of hearts, K of diamonds");
  39.                      return;
  40.                  }
  41.                 if (card == "A")
  42.                 {
  43.                 for (int i = 2; i <= 10; i++)
  44.                 {
  45.                        Console.WriteLine($"{i} of spades, {i} of clubs, {i} of hearts, {i} of diamonds");
  46.                 }
  47.                        Console.WriteLine("J of spades, J of clubs, J of hearts, J of diamonds");
  48.                        Console.WriteLine("D of spades, D of clubs, D of hearts, D of diamonds");
  49.                        Console.WriteLine("K of spades, K of clubs, K of hearts, K of diamonds");
  50.                        Console.WriteLine("A of spades, A of clubs, A of hearts, A of diamonds");
  51.             return;
  52.                 }
  53.                 else
  54.                  {
  55.                     for (int i = 2; i <= int.Parse(card); i++)
  56.                     {
  57.                         Console.WriteLine($"{i} of spades, {i} of clubs, {i} of hearts, {i} of diamonds");
  58.                     }
  59.                  }
  60.             }
  61.         }
  62.    
  63.    
  64.  
  65.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×