using System;
public class Program
{
public static void Main()
Console.WriteLine("Hello World");
/* This is a comment: everything inside should work */
/* Statement 1 - Yes, this statement works because the comment has a beginning and end. All comments are also inside the slash-star and star-slash. Properly formatted. */
// This is also a comment: everything to the right should work
/* Statement 2 - Yes, this works as all comments to the right are in the proper // comment syntax. */
/* Comments often end with "*/" characters */
/* Statement 3 - No. The first half of the comment has a proper start and finish, but the rest of the comment after the star-slash is not part of the comment body as it does not have another start.*/
// So is this a comment,
but this bit isn't.
/* Statement 4 - No, this does not run as the top half after the // is in proper comment syntax form but the bottom half is not as there is no // in front of the words.*/
/// A special documentation comment.
/*Statement 5 - Yes, this works and is using proper syntax for a special documentation comment.*/
{ // comment here
Console.WriteLine("Hello World"); // and also a comment here
} // also a comment here
/* Statement 1 - Yes, this works as it follows the rules for both ways of commenting */
{ Console.WriteLine("Hello World2"); }
// and also a comment here
/* Statement 2 - Yes, this works as comments have the proper syntax and code is terminated using semi-colons in the right places.*/
/* III. Fill in the Blanks
C# is a case‐sensitive language, and each line of code is terminated with a semi-colon. Lines can be indented for ease of reading if they get too long, or to identify nested blocks.
You can include comments with the // or the slash-star...star-slash syntax.
Blocks of code can be collapsed into regions, also to ease readability.*/
}