public static void Main()
Console.WriteLine("\n\nCount total number of vowel or consonant\n");
Console.WriteLine("-----------------------------------------\n");
Console.WriteLine("Input the string: ");
str = Console.ReadLine();
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.WriteLine("\nThe total number of vowels in the string is: {0}\n", vowel);
Console.WriteLine("The total number of consonants in the string is: {0}\n\n", cons);