Mega Code Archive

 
Categories / C# Book / 01 Language Basics
 

0008 Single line comments

A single line comments start with // and continues until the end of line. using System; class Program { static void Main(string[] args) { int i = 0; int j = 2; //This is a single line comment. Console.WriteLine("i=" + i); Console.WriteLine("j=" + j); } }