Constants
Constants are immutable values known at compile time.
const double Pi = 3.14159;const int DaysInWeek = 7;Console.WriteLine($"Pi = {Pi}, Days in week = {DaysInWeek}");Run the Application
Section titled “Run the Application”dotnet runResult
Section titled “Result”Pi = 3.14159, Days in week = 7