Monday, March 21, 2016

Exercise 2: Comments

Exercise 2: Comments

inspired by  http://learnpythonthehardway.org/book/ex2.html

using System;

public class Test
{
     public static void Main()
     {
          // A comment, this is so you can read your program later.
          // Anything after the // is ignored by C#.
          Console.WriteLine("I could have code like this."); // and the comment after is ignored

          // Console.WriteLine("This won't run.");
          Console.WriteLine("This will run.");
     }
}

No comments:

Post a Comment