CSharp - Write program to Output several line of text and append text


The task is to explore how to add text together.


plus operator (+) can be used with text, not just with numbers.

In other words, it adds text together.


using System;

class Program/*from   w w  w .  j a  v  a2  s . co m*/
    static void Main(string[] args)
        // Normal text 
        Console.WriteLine("I have started to program. This is a test");

        // Also normal text 
        Console.WriteLine(" in C#.");

        // Joining two texts using plus sign 
        Console.WriteLine("I have started to program" + " in C#.");