Console.Write method in C#

In this article, I will explain you about Console.Write method in C#.
  • 5030

Introduction

A console application is the simplest form of C# program. Console programs are very easy to develop. Console programs read input and write output. For writing purpose we can use Console.Write method. Console.Write method writes text on the console window.

Example

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace ConsoleApplication11

{

    class Program

    {

        static void Main()

        {

            Console.Write("Uma");

            Console.Write("is a");

            Console.Write("Girl");

            Console.Read();

        }

    }

}

 

The output of following program

Clipboard212.jpg

© 2013 dotNetheaven. All rights reserved.