Key Concepts

Review core concepts you need to learn to master this subject


Console.WriteLine("Enter your name: "); name = Console.ReadLine();

The Console.ReadLine() method is used to get user input. The user input can be stored in a variable. This method can also be used to prompt the user to press enter on the keyboard.

Hello World
Lesson 1 of 1
  1. 1
    What would you like to build? If you can name it, you can probably build it with C#. This programming language can be used to make interactive websites, mobile apps, video games, augmented reality…
  2. 2
    Time to run some C# yourself!
 There are two panels here: a text editor containing some C# code and a console, or terminal, that shows output. When you run the code, you’ll see some text printed t…
  3. 3
    We can also read input from a user. The command Console.ReadLine() captures text that a user types into the console.
 In this example, the program writes a question to the console and waits …
  4. 4
    Ironically, an essential tool in programming is the ability to tell a computer to ignore a part of a program. Text written in a program but not run by the computer is called a comment. In C#, a…
  5. 5
    You’ve seen some examples of C# code in action, but learning a programming language is more than just memorizing commands: it’s understanding how it differs from other technologies, joining its com…
  6. 6
    Congrats! You finished your first lesson in C#. In this lesson you learned: * C# is used to make interactive websites, mobile apps, video games, augmented and virtual reality (AR and VR), back-end …

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo