csharp check word length
Code Example - csharp check word length
Console.Write("Write a word ");
string Word = Console.ReadLine();
Console.WriteLine("The word you wrote has " + Word.Length + " characters in it");
for (int i = 0; i < Word.Length; i++)
{
Console.WriteLine("Index " + i + " is " + Word[i]);
}
csharp check lenght
'something'.Length; //Returns the length of whatever you check