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);
}
}
public class StringLength
{
public static void Main(String[] args)
{
string s1="Sanjay kumar singh";
int len=s1.length;
Console.WriteLine(len);
}
}
Output
No comments:
Post a Comment