Search
 
SCRIPT & CODE EXAMPLE
 

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]);
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: add integer to string c# 
Csharp :: entity framework attach 
Csharp :: unity predicts rigidbody position in x seconds 
Csharp :: static {} 
Csharp :: multiple lines in string c# parameterized 
Csharp :: calculator using single readline c# 
Csharp :: one to many relationship in asp net entity framework with role 
Csharp :: linq pick random element 
Csharp :: wpf line intersect rectangle 
Csharp :: how to set window position 
Csharp :: c# operators 
Csharp :: length of arr c# 
Csharp :: unity transform.translate 
Csharp :: .net 6 get appsettings value 
Csharp :: unity stack overflow error 
Csharp :: c# count items in listbox 
Csharp :: build a project from dotnet using cli 
Csharp :: out variable in c# 
Csharp :: MailChimp C# Api calls 
Csharp :: embed video to exe file with c# 
Csharp :: enemy turret one direction ahooting script unity 2d 
Html :: how to use unsplash images in html 
Html :: copyright footer html code 
Html :: no follow no index 
Html :: disable html form input autocomplete autofill 
Html :: html filter file upload 
Html :: html disable first option 
Html :: bootstrap footer bottom of page 
Html :: css display only on mobile 
Html :: font awesome icons 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =