Professional Documents
Culture Documents
Cheatsheets / Learn C#
Console.ReadLine()
C#
Comments
Comments are bits of text that are not executed. These // This is a single line comment
lines can be used to leave notes and increase the
readability of the program.
Single line comments are created with two /* This is a multi-line comment
forward slashes // . and continues until the end
Multi-line comments start with /* and end
of comment symbol is reached */
with */ . They are useful for commenting out
large blocks of code.
Console.WriteLine()
https://www.codecademy.com/learn/learn-c-sharp/modules/csharp-hello-world/cheatsheet 1/2
19/01/2024, 13:11 Learn C#: Learn C#: Hello World Cheatsheet | Codecademy
.NET Platform
Print Share
https://www.codecademy.com/learn/learn-c-sharp/modules/csharp-hello-world/cheatsheet 2/2