Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- static void Main(string[] args)
- {
- Char ch;
- Console.WriteLine("Enter a character");
- ch =Convert.ToChar(Console.ReadLine());
- switch (ch)
- {
- case 'a':
- case 'e':
- case 'i':
- case 'o':
- case 'u':
- case 'A':
- case 'E':
- case 'I':
- case 'O':
- case 'U':
- Console.WriteLine("Character is alphabet");
- break;
- default:
- Console.WriteLine("Character is constant");
- break;
- }
- Console.ReadLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment