How to use concat in Console.WriteLine with C#

1 Answer

0 votes
using System;

class Program
{
    static void Main()
    {
        int n = 459;
        string s = "c#";
        
        Console.WriteLine(s + " - " + n);
    }
}



/*
run:

c# - 459

*/

 



answered Sep 4, 2020 by avibootz

Related questions

1 answer 159 views
1 answer 143 views
1 answer 136 views
1 answer 152 views
1 answer 164 views
1 answer 124 views
124 views asked Sep 4, 2020 by avibootz
1 answer 219 views
...