Display Identifier in C# With Example

Display Identifier in C# With Example . In this program we can execute the identifiers for program for C sharp. An identifier is a name that designates the identification of a single item or a single class of objects, where the “object” or class could be an idea, a physical countable object, or a physical noncountable substance.

using System;
namespace Main
{
class Program
{
static void Main(string[] args)
{
int mph = 60;
int m = 60;
Console.WriteLine(mph);
Console.WriteLine(m);
}
}
}

 

Output:

60

60

WriteLine in C# Program

The WriteLine method prints one or more objects on a single line, terminating with a new line character. Any subsequent output will be printed on a new line as a result. Using the specified format information, writes the text representation of the specified objects to the standard output stream, followed by the current line terminator.

Namespace to Execute Execute the Identifiers in C#

Namespace is a C# feature that is not available in C#. A namespace is a declarative region that gives identifiers for types, functions, variables, and other objects inside it a scope. It is permissible to have multiple namespace blocks with the same name. The named scope is used for all declarations within those blocks.