AboAmmar
2
Q:

length of a string c#

string name = "Anthony";
int nameLength = name.Length;
Console.WriteLine("The name " + name + " contains " + nameLength + "letters.");
7
string s = "Corona123";
int sizeOfString = s.Length;
7

New to Communities?

Join the community