Files
2026-01-11 23:13:26 +01:00

628 B

Output

Console.Write

to output a message in the console you can run the method using a string literal

Console.WriteLine("Hello");

Console.Write

The same but doesn't add a line at the end of the sentece

Console.Write("Hello");
Console.Write("You");

// Output
// HelloYou

Comments

///This is a comment

/* this is a
*  multiline command
*/ comment

Escape Sequence

// tab
Console.WriteLine("\tHello")
// backspace 
Console.WriteLine("Hello\bWorld")
// newLine 
Console.WriteLine("Hello\nWorld")

Console.ReadKey();

Prevent our program to end until we type a key