string name = "John";
Console.WriteLine("His name is " + name);
// or
Console.WriteLine($"His name is {name}");
// or
Console.WriteLine("His name is ", name);
// or
Console.WriteLine("His name is {0}", name);
using System;
namespace Simple
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("This is C#");
}
}
}