use the addition operator (+) to concatenate strings

image_pdfimage_print
   
 

using System;

class MainClass {

    public static void Main() {
        
        string myString6 = "To be, " + "or not to be";
        Console.WriteLine(""To be, " + "or not to be" = " + myString6);
    
    }
}

    


This entry was posted in Data Types. Bookmark the permalink.