628 B
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