Summary
Congratulations! You've completed your first steps with C#. Let's recap what you've learned:
What you've accomplished
In this module, you:
- Displayed output to the console using
Console.WriteLine()andConsole.Write() - Accepted user input using
Console.ReadLine()and stored it in variables - Manipulated strings using concatenation, string interpolation, and string methods
- Built programs that interact with users and display personalized messages
Key concepts to remember
- Console.WriteLine() prints text and adds a line break
- Console.Write() prints text without adding a line break
- Console.ReadLine() pauses your program and waits for user input (always returns a string)
- String interpolation with
$"..."makes it easy to combine text and variables - String methods like
.ToUpper(),.ToLower(), and.Replace()let you modify text - Escape characters like
\nand\tcontrol formatting - Always end statements with a semicolon (
;) - Text must be enclosed in double quotes (
")
The best way to keep learning is to keep practicing. Modify the programs you've written, try new ideas, and don't be afraid of errors—they're just feedback telling you how to improve!
Get a free verified certification
Microsoft and freeCodeCamp.org offer a training and certification combo on foundational C#. By completing this Learn module, you're already started. Explore freeCodeCamp's Foundational C# with Microsoft certification here: https://aka.ms/csharp-certification.