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 task_3
- {
- class Program
- {
- static void Main(string[] args)
- {
- string cards = "2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K and A";
- char check =char.Parse(Console.ReadLine());
- if (cards.Contains(check) == true)
- {
- Console.WriteLine("YES!");
- }
- else Console.WriteLine("NOOO!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement