C# Syntax
Every C# program has rules for how statements are written and executed.
- Follow C# syntax rules for statements and blocks
- Use comments to document code
- Run examples in the Try it editor
Example
string name = "Sturdee";
int year = 2026;
Console.WriteLine($"{name} {year}");Try it Yourself
Run this CSHARP example in your local environment or course sandbox.