Search This Blog

Wednesday, 11 September 2013

Count String Length in C#

Finding String Length in an Entered String

using System;

public class StringLength
{
   public static void Main(String[] args)
   {
      string s1="Sanjay kumar singh";
      int len=s1.length;
      Console.WriteLine(len);
   }
}
Output 
 

No comments:

Popular Posts