Advertisement
Fundamentalen

CheckForAPlayCard

Mar 20th, 2014
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 KB | None | 0 0
  1. using System;
  2.  
  3. class CheckForAPlayCard
  4. {
  5.     static void Main()
  6.     {
  7.         Console.Write("Enter your sign: ");
  8.         string sign = Console.ReadLine();
  9.  
  10.         switch (sign)
  11.         {
  12.             case "2":
  13.             case "3":
  14.             case "4":
  15.             case "5":
  16.             case "6":
  17.             case "7":
  18.             case "8":
  19.             case "9":
  20.             case "10":
  21.             case "J":
  22.             case "Q":
  23.             case "K":
  24.             case "A":
  25.                 Console.WriteLine("yes");
  26.                 break;
  27.             default: Console.WriteLine("no");
  28.                 break;
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement