1d. iii). Test for vowels


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Prac1_d3
{
class Program
{
static void Main(string[] args)

{
char c;
Console.WriteLine("Enter any charater");
c  = Convert.ToChar(Console.ReadLine());
switch(c)

{
case'a':
case'e':
case'i':
case'o':
case'u':
case'A':
case'E':
case'I':
case'O':
case'U':
Console.Write("It is a vowel");

break;
default:
Console.Write("It is not a vowel");

break;
}
Console.ReadKey();

}
}
}

Comments