ow to write text in cosole.Readline code example
Example 1: console.writeline c#
Console.WriteLine("Hello, World");
Example 2: 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);
}
}
}