Here is source code of the C# Program to Concatenate Two Strings. The C# program is successfully compiled and executed with Microsoft Visual Studio. The program output is also shown below.
* C# Program to Concatenate Two Strings
static void Main()
string s1 = "Good";
string s2 ="Morning";
string s3=string.Concat(s1, s2);
Here is the output of the C# Program:
Sanfoundry Global Education & Learning Series – 1000 C# Programs.
If you liked this C# Program, kindly share, recommend or like below!