using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WriteandWriteLine
{
class Program
{
static void Main(string[] args)
{
Console.Write("ONE");
// THIS PRINTS ONE
Console.Write("
TWO"); // THIS PRINTS TWO IN SAME LINE.
Console.WriteLine("
THREE");// THIS WOULD HAVE PRINTED IN
NEWLINE IF WE COMMENT OUT TOP TWO WRITE.
Console.WriteLine("FOUR");
// THIS PRINTS IN NEWLINE
Console.WriteLine("FIVE"); // THIS PRINTS IN
NEWLINE
Console.ReadLine(); //
Console.ReadLine(); is to keep focus the window
}
}
}
No comments:
Post a Comment