string myString = "Hello, C#";
int length = myString.Length; // length will be 9
string firstName = "Mohan";
string lastName = "Kumar";
string fullName = firstName + " " + lastName; // fullName will be "John Doe"
int age = 30;
string message = "I am " + age.ToString() + " years old."; // message will be "I am 30 years old."
int apples = 5;
string output = $"I have {apples} apples."; // output will be "I have 5 apples."
string myString = "C# Programming";
char firstChar = myString[0]; // firstChar will be 'C'
string message = "This is a special\ncharacter: \"";