codeGK
Code it ALL
Single-Line comments in C# - CodeGK

♦ Single-Line comments in C#

♣ Example1: Single-Line comments in C#

Double slashes are used for commenting single line in C#.
In this example, "Hello World!" is commented.
Example
Input:
Output: