Mega Code Archive

 
Categories / C# Tutorial / Development
 

Write without new line

Write( ) is used to display the string without a new line. class MainClass {    static void Main()    {          System.Console.Write("This is text 1.");          System.Console.Write("This is text 2.");          System.Console.Write("This is text 3.");    } } This is text 1.This is text 2.This is text 3.