Hello World
Learn about C#, a programming language used for websites, apps, video games, and virtual reality.
StartKey Concepts
Review core concepts you need to learn to master this subject
Console.ReadLine()
Console.ReadLine()
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
- 1What 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…
- 2Time 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…
- 3We 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 …
- 5You’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…
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory