public static void Main()
int i, len, vowel, upCon, lowCon, upVow, lowVow;
Console.Write("Input the string : ");
str = Console.ReadLine();
if((str[i] =='a' || str[i]=='e' || str[i]=='i' || str[i]=='o' || str[i]=='u'))
else if((str[i]>='a' && str[i]<='z'))
else if((str[i]>='A' && str[i]<='Z'))
else if((str[i]=='A' || str[i]=='E' || str[i]=='I' || str[i]=='O' || str[i]=='U'))
if((str[i] =='a' || str[i]=='e' || str[i]=='i' || str[i]=='o' || str[i]=='u' || str[i]=='A' || str[i]=='E' || str[i]=='I' || str[i]=='O' || str[i]=='U'))
Console.Write("Uppercase consonant = {0}\n", upCon);
Console.Write("Lowercase consonant = {0}\n", lowCon);
Console.Write("Uppercase Vowel = {0}\n", upVow);
Console.Write("Lowercase Vowel = {0}\n", lowVow);
Console.Write("Number of vowel = {0}\n", vowel);