Answers for "comments c#"

C#
1

comments in c#

using System;
					
public class Program
{
	public static void Main()
	{
		//main code starts from here
        //this is how to make a comment in c#
		Console.WriteLine("Hello,World");
		/* this i a multiline comment in c#
		also can continue for several lines 
		until a closing star and slash are encountered */
	}
}
Posted by: Guest on October-30-2021
1

c# comment

//This Is A Comment
//Comments don't change what
//Happens in the code, but they
//Help you understand your own code,
//So you can make more changes.

//To make a comment, use a "//" then 
//Whatever your comment is.
Posted by: Guest on July-16-2021

C# Answers by Framework

Browse Popular Code Answers by Language