Write a C# Sharp program that takes a character as input and checks if it is a vowel, a digit, or any other symbol

 


using System;

public class Program
{
    public static void Main()
    {
        char ch;
        Console.Write("Input a symbol: ");
        ch = Convert.ToChar(Console.ReadLine());

        if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u')
        {
            Console.WriteLine("It's a lowercase vowel.");
        }
        else if (ch == 'A' || ch == 'E' || ch == 'I' || ch == 'O' || ch == 'U')
        {
            Console.WriteLine("It's an uppercase vowel.");
        }
        else if (ch >= '0' && ch <= '9')
        {
            Console.WriteLine("It's a digit.");
        }
        else
        {
            Console.WriteLine("It's a symbol.");
        }
    }
}
Write a C# Sharp program that takes a character as input and checks if it is a vowel, a digit, or any other symbol Write a C# Sharp program that takes a character as input and checks if it is a vowel, a digit, or any other symbol Reviewed by Bhaumik Patel on 10:04 PM Rating: 5