Exercise 3 - CommentsΒΆ
- Create inline and bulk comment blocks
Comments are a very useful for explaining in english the code and your intentions.
class Exercise2
{
static void Main(string[] args)
{
// Simple inline comment you can place anything here and its ignored by the compiler
Console.WriteLine("Code and comment on same line"); // This is the comment on same line
/* line one
Multi line comment
line three */
// You can also use a comment to disable a piece of code
//Console.WriteLine("This wont run");
}
}