Wednesday 24 April 2013

Write a program to identify whether a character entered by a user is a vowel or a consonant. (Duration: 30 min)


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

namespace character
{
    class VowelConsotant
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter the Alphabet");
            Alphabet = Convert.ToChar(Console.ReadLine());
                       switch (Alphabet)
            {
                case 'a':
                case 'e':
                case 'i':
                case 'o':
                case 'u':
            }
        }
    }
}

No comments:

Post a Comment