Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _03.CheckForPlayCard
- {
- class CheckForPlayCard
- {
- static void Main()
- {
- string[] cardFace = new string[] { "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A" };
- Console.Write("Enter a value for the card face: ");
- string input = Console.ReadLine().ToUpper();
- Console.WriteLine(cardFace.Contains(input) ? "Yes":"No");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement