Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string input = Console.ReadLine();
- if (input == "A")
- {
- for (int a = 2; a <= 10; a++)
- {
- Console.WriteLine($"{a} of spades, {a} of clubs, {a} of hearts, {a} of diamonds");
- if (a == 10)
- {
- Console.WriteLine("J of spades, J of clubs, J of hearts, J of diamonds");
- Console.WriteLine("Q of spades, Q of clubs, Q of hearts, Q of diamonds");
- Console.WriteLine("K of spades, K of clubs, K of hearts, K of diamonds");
- Console.WriteLine("A of spades, A of clubs, A of hearts, A of diamonds");
- }
- }
- }
- if (input == "K")
- {
- for (int a = 2; a <= 10; a++)
- {
- Console.WriteLine($"{a} of spades, {a} of clubs, {a} of hearts, {a} of diamonds");
- if (a == 10)
- {
- Console.WriteLine("J of spades, J of clubs, J of hearts, J of diamonds");
- Console.WriteLine("Q of spades, Q of clubs, Q of hearts, Q of diamonds");
- Console.WriteLine("K of spades, K of clubs, K of hearts, K of diamonds");
- }
- }
- }
- else if (input == "Q")
- {
- for (int a = 2; a <= 10; a++)
- {
- Console.WriteLine($"{a} of spades, {a} of clubs, {a} of hearts, {a} of diamonds");
- if (a == 10)
- {
- Console.WriteLine("J of spades, J of clubs, J of hearts, J of diamonds");
- Console.WriteLine("Q of spades, Q of clubs, Q of hearts, Q of diamonds");
- }
- }
- }
- else if (input == "J")
- {
- for (int a = 2; a <= 10; a++)
- {
- Console.WriteLine($"{a} of spades, {a} of clubs, {a} of hearts, {a} of diamonds");
- if (a == 10) { Console.WriteLine("J of spades, J of clubs, J of hearts, J of diamonds"); }
- }
- }
- else
- {
- int inputi = int.Parse(input);
- for (int a = 2; a <=inputi; a++)
- {
- Console.WriteLine($"{a} of spades, {a} of clubs, {a} of hearts, {a} of diamonds");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment