csharp add strings

Code Example - csharp add strings

                
                        string value = "cat ";
        
// Step 1: append a word to the string.
value += "and ";
Console.WriteLine(value);
        
// Step 2: append another word.
value += "dog";
Console.WriteLine(value);

//OUTPUT:
cat and 
cat and dog