using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace quesVowel
{
class Program
{
static void Main(string[] args)
{
string character;
Console.WriteLine("Enter the character");
character = Console.ReadLine();
switch (character)
{
case "A":
case "a":
case "E":
case "e":
case "I":
case "i":
case "O":
case "o":
case "U":
case "u":
Console.WriteLine(character + " is a vowel");
break;
default:
Console.WriteLine(character + " is not a vowel");
break;
}
Console.ReadLine();
}
}
}
Comments
Leave a comment