Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CheckPlayCard
- {
- static void Main(string[] args)
- {
- string[] cards = new string[] { "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A" };
- string input = Console.ReadLine();
- Console.WriteLine(cards.Contains(input) ? "yes" : "no");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement