C# program to demonstrate example of Console.Write() and Console.WriteLine()

C# program to demonstrate example of Console.Write() and Console.WriteLine()

Example:

// C# program to demonstrate example of 
// Console.Write() and Console.WriteLine()
using System;
using System.IO;
using System.Text;

namespace JustTechReview
{
    class Test
    {
        // Main Method 
        static void Main(string[] args)
        {

            Console.WriteLine("This is line1"); 
            Console.WriteLine("This is line2");
            Console.Write("This is line3");
            Console.Write("This is line4");            
            
            //hit ENTER to exit the program
            Console.ReadLine();
        }
    }
}

Output

This is line1
This is line2
This is line3This is line4

Recent Posts

error: Alert: Content is protected!!