Answers for "c# add strings"

C#
1

c# 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
Posted by: Guest on November-14-2021

C# Answers by Framework

Browse Popular Code Answers by Language