Create and run simple C# console applications (Get started with C#, Part 2)
At a glance
-
Level
-
Skill
-
Product
Use Visual Studio Code to develop C# console applications that implement arrays, foreach loops, and if statements.
Create and run simple C# console applications (Get started with C#, Part 2)
Prerequisites
- Declare string, numeric, and Boolean variable types in C#.
- Perform basic string and numeric operations in C#.
- Write simply formatted string and numeric information to the console.
Achievement Code
Would you like to request an achievement code?
Modules in this learning path
Learn how to configure Visual Studio Code for C# and how to use this professional IDE to create and run console applications.
Learn how to repeat actions in C# using for, while, and do-while loops, and control loop execution with break and continue.
Learn how to store and manage groups of related data in C# using arrays and List<T>, and choose the right structure for the job.
Learn how to write reusable code in C# using methods, parameters, return values, variable scope, and namespaces.
Learn how to read from and write to files in C# using the using statement and the File class to keep your code safe and clean.