How to join multiple strings into a string with C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        string s1 = "c#";
        string s2 = "java";
        string s3 = "python";

        string s = s1 + " " + s2 + " " + s3;

        Console.Write(s);
    }
}



/*
run:

c# java python

*/

 



answered Oct 31, 2020 by avibootz

Related questions

1 answer 188 views
1 answer 180 views
1 answer 153 views
2 answers 222 views
1 answer 159 views
1 answer 161 views
1 answer 139 views
...