Bing In

Bing In

  • NA
  • 30
  • 8.3k

alphabet and number counts using method count()

Apr 30 2016 9:35 AM
output the count of alphabet and number entered
using method count() and keyword out
 
for example
if user enters gpdw235mw3s393, output should be alphabets are 7, numbers are 7
 

 
 public static void Main()
{
   string a = Console.ReadLine();
   int b = int.Parse(a);
}
 
public static void count(params string[] args)
{
   for(int i = 0; i < args.Length; i++)
   {
       edit this space
   } 
}
 

Answers (3)