print message in console c# code example
Example 1: how to print in c#
Console.WriteLine("Hello World");
Example 2: c# print to console
Console.WriteLine("This is C#");
Example 3: print message in console c#
using System;
namespace ReadLine
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter your name: ");
string name = Console.ReadLine();
Console.WriteLine("Hello {0}", name);
}
}
}
Example 4: c# print
System.Console.WriteLine("this is how to print");