Declaration
Declare a variable by specifying its type and name.
int age;string name;bool isActive;age = 25;name = "Alice";isActive = true;Console.WriteLine($"{name}, {age}, active: {isActive}");Run the Application
Section titled “Run the Application”dotnet runResult
Section titled “Result”Alice, 25, active: True