public void set(string str1)
public static void Main()
Letters obj = new Letters();
Console.WriteLine("Enter string: ");
obj.set(Console.ReadLine());
string upConsonants = "BCDFGHJKLMNPQRSTVWXYZ";
string lowConsonants = "bcdfghjklmnpqrstvwxyz";
int lowCons = 0, upCons = 0, lowVow = 0, upVow = 0;
if(chr=='a' || chr=='e' || chr=='i' || chr=='o' || chr=='u')
if(chr=='A' || chr=='E' || chr=='I' || chr=='O' || chr=='U')
if(upConsonants.Contains(chr.ToString()))
if(lowConsonants.Contains(chr.ToString()))
Console.WriteLine("Uppercase Consonants = "+ upCons +".");
Console.WriteLine("Lowercase Consonants = "+ lowCons +".");
Console.WriteLine("Uppercase Vowels = "+ upVow +".");
Console.WriteLine("Lowercase Vowels = "+ lowVow +".");
Console.WriteLine("Number of Vowels = "+(upVow + lowVow)+".");