Console.WriteLine("Hello World");
Console.Write("C# Programming");
System.Console.WriteLine("this is how to print");
Console.WriteLine(/*something like "hello"*/);
Console.Write(/*something like "hello"*/);
MessageBox.Show("Hello World");
Console.WriteLine("Prints on a new line");
Console.Write("Prints on the same line");
MessageBox.Show("I Love Khloud");
Debug.Log("This is C# programming"); //for Unity
Console.WriteLine("Anything Inside the quotation marks");
Console.WriteLine("Nepal");
Console.WriteLine(/* your content here */);
Console.WriteLine("Print");
String yourname = "Mr. Nice";
Console.WriteLine("Hello {0}", yourname);
Console.WriteLine("Hello Guys");
string s = text;
PrintDocument p = printDocument1;
p.PrinterSettings.PrinterName = printer;
if (print)
{
p.PrintPage += delegate (object sender1, PrintPageEventArgs e1)
{
e1.Graphics.DrawString(s, font, new SolidBrush(Color.Black), new RectangleF(0, 0, p.DefaultPageSettings.PrintableArea.Width, p.DefaultPageSettings.PrintableArea.Height));
};
try
{
p.Print();
}
catch (Exception ex)
{
throw new Exception("Exception Occured While Printing", ex);
}
}
Console.Write("hello World!")