To print something in C#, you can use the Console.Write()
or Console.WriteLine()
methods. Write()
prints the message without a newline character, while WriteLine()
adds a newline character at the end of the message.
Here's an example:
main.cs489 chars18 lines
Output:
main.cs69 chars4 lines
gistlibby LogSnag