public static void Main()
int letters, digits, counts, numbers, words;
letters=digits=counts=numbers=0;
Console.WriteLine("\n\nCount total number of alphabets, digits and special characters :\n");
Console.WriteLine("------------------------------------------------------------------\n");
Console.Write("Input the string : ");
strData=Console.ReadLine();
if ((strData[numbers]>='a' && strData[numbers]<='z') || (strData[numbers]>='A' && strData[numbers]<='Z'))
else if (strData[numbers]>='0' && strData[numbers]<='9')
Console.Write("Number of Alphabets in the string is : {0} \n",letters);
Console.Write("Number of Digits in the string is : {0} \n",digits);
Console.Write("Number of Special characters in the string is : {0} \n",counts);