public static void Main()
int alp, digits, specialch, i,l;
alp = digits = specialch = i = 0;
Console.Write("please enter 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", digits);
Console.Write("Number of Special characters in the string is : {0}\n\n", specialch);
Console.Write("/n program is created by Simran Verma");