using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { string str = ""; Console.WriteLine("\nEnter two numbers"); str= Console.ReadLine(); Console.WriteLine(str); switch (str.ToLower()) { case "a": case "e": case "i": case "o": case "u": Console.WriteLine("Vowel"); Console.ReadLine(); break; default: Console.WriteLine("Not a Vowel"); Console.ReadLine(); break; } } } }
Coding Hub is my personal blog. Purpose of my blog is to learn and let learn.The content in this blog is mine and also from other resources. I dedicate this blog to all the technical minds. Here you can learn Asp.net, MVC, Linq, Directives, Event Handling, ADO.NET, AJAX control,Ajax Extension,Add Rotator, Panel control,Database Access, Debugging, Error Handling, Configuration and Deployment, WCF, Design Pattern, .Net Interview Question Answers, PL/SQL Tutorial,Source code,JavaScript, JQuery.
Sep 21, 2010
Print vowel in C#
Sponsored Links: