Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class MainClass
- {
- public static void Main(string[] args)
- {
- string cardSign = Console.ReadLine();
- string[] suits = { "spades", "clubs", "hearts", "diamonds" };
- for (int i = 2; i <= int.Parse(cardSign); i++)
- {
- string cards = "";
- foreach (string suit in suits)
- {
- cards += i + " of " + suit + ", ";
- }
- Console.WriteLine(cards.TrimEnd(',', ' '));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement