c# add strings

82

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

Comments

Submit
0 Comments