Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# 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]);
}
 
PREVIOUS NEXT
Tagged: #check #word #length
ADD COMMENT
Topic
Name
8+4 =