C# · Lesson 1 of 4

Write your first program message

Console.WriteLine displays the text between quotation marks. Change the text, then run it in the C# editor.

Your task

Replace Sara with your name. Copy the code into the editor, then press its Run button.

Run with .NET Fiddle

Find the Hello World line inside Main and replace it with your lesson code. Then press Run.

The editor runs code through .NET Fiddle and needs an internet connection. If it does not load or input is unavailable, open it in a new tab ↗.

These checks review your snippet. Run it in the C# editor to confirm the output.

Can you see your name? Add another line of output, then move on to storing a value.

Next: Store a value