use of concatenation string in C#

 

For Example: Write a program to demonstrate the use of concatenation string

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

 

namespace ConsoleApplication7

{

class Program

    {

static void Main(string[] args)

        {

string s1 = "Computers";

 

// ... Add another string to the start.

string s2 = "Aryan" + s1;

Console.WriteLine(s2);

Console.ReadLine();

        }

    }

}

Output:

Comments

Popular posts from this blog

simple program C#

Regular Expression Validator Control in asp.net

two dimension array in C#