Answers for "c# string word count"

C#
0

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]);
}
Posted by: Guest on September-30-2021

C# Answers by Framework

Browse Popular Code Answers by Language