// C# program to illustrate the
// use of const keyword
using System;
public class Constant
{
// Constant fields
public const int number1 = 786;
public const string str = "Shaik Badulla";
// Main method
public static void Main()
// Display the value of Constant fields
Console.WriteLine("The value of myvar: {0}", number1);
Console.WriteLine("\nThe value of str: {0}", str);
}