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 162 views
1 answer 146 views
1 answer 140 views
1 answer 154 views
1 answer 170 views
1 answer 128 views
128 views asked Sep 4, 2020 by avibootz
1 answer 223 views
...