×

c# · level 1 · unit 1 · lesson 2

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

shows a message on the screen.

Console.WriteLine is a command that shows something on the screen. Read it as: console, write a line. The console is the window where your program talks. Whatever you put inside the brackets is what appears.

Words go inside double quote marks, like "Hello, world!". A piece of text in quotes is called a . Picture the letters threaded on a string, like beads. The quotes are not shown.

Every instruction ends with a , ;. It works like the full stop at the end of a sentence, telling C# that this instruction is finished.

using System;

Console.WriteLine("Hello, world!");

Use a capital C in Console, a capital W and L in WriteLine, and double quotes at both ends.