using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class CalcAvgPerc
{
static void Main(string[] args)
{
char ch;
Console.WriteLine("Enter the Charachter to check if its a vowel..");
ch = char.Parse(Console.ReadLine());
Console.WriteLine("Checking Charachter.....");
System.Threading.Thread.Sleep(2000);
switch (ch)
{
case 'a':
case 'A':
case 'E':
case 'e':
case 'I':
case 'i':
case 'o':
case 'O':
case 'u':
case 'U':
Console.WriteLine("{0} is a vowel", ch);
break;
default: Console.WriteLine("{0} is not a vowel", ch);
break;
}
Console.ReadKey();
}
}
}This code for Check Vowel using Switch Case in C# language
