Variables and Constants
Variables store data that can change; constants store fixed values.
int variable = 10;variable = 20;const double Pi = 3.14159;Console.WriteLine($"Variable: {variable}, Pi: {Pi}");Run the Application
Section titled “Run the Application”dotnet runResult
Section titled “Result”Variable: 20, Pi: 3.14159