Contact: aviboots(AT)netvision.net.il
43,874 questions
57,260 answers
573 users
using System; class Program { static void Main() { int number = 42; string str = "The answer is: "; string result = str + number; Console.WriteLine(result); } } /* run: The answer is: 42 */
using System; class Program { static void Main() { int number = 42; string result = $"The answer is: {number}"; Console.WriteLine(result); } } /* run: The answer is: 42 */