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 286 views
1 answer 293 views
1 answer 237 views
2 answers 343 views
1 answer 257 views
1 answer 264 views
1 answer 228 views
...