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 179 views
1 answer 169 views
1 answer 141 views
2 answers 214 views
1 answer 147 views
1 answer 148 views
1 answer 134 views
...