Advertisement
Guest User

CheckPlayCard

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