Joining two texts using plus sign - CSharp Language Basics

CSharp examples for Language Basics:string

Description

Joining two texts using plus sign

Demo Code

using System;/*from   w w w  .  j a  va 2 s  .  c  om*/
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program
{
   static void Main(string[] args)
   {
      // Normal text
      Console.WriteLine("I have started to program");
      // Also normal text
      Console.WriteLine(" in C#.");
      // Joining two texts using plus sign
      Console.WriteLine("I have started to program" + " in C#.");
   }
}

Result


Related Tutorials