public static void Main()
Console.Write("\n\nCount total number of alphabets and digits :\n");
Console.Write("--------------------------------------------------------------------\n");
Console.Write("Input the string : ");
str = Console.ReadLine();
if((str[i]>='a' && str[i]<='z') || (str[i]>='A' && str[i]<='Z'))
else if(str[i]>='0' && str[i]<='9')
Console.Write("Number of Alphabets in the string is : {0}\n", alp);
Console.Write("Number of Digits in the string is : {0}\n", digit);