Add logic to C# console applications (Get started with C#, Part 3)

Beginner
Developer
Higher Education Educator
K-12 Educator
Student
.NET
Visual Studio Code

Examine the relationship between code blocks and variable scope, and deepen your C# coding experience with Boolean expressions, selection statements, and iteration statements.

Screenshot of the trophy for the Describe the Add logic to C# console applications (Get started with C#, Part 3) learning path.

Add logic to C# console applications (Get started with C#, Part 3)

Prerequisites

  • Assign and retrieve values by using variables, including array variables, in C#.
  • Manipulate variable data to modify its type and appearance in C#.
  • Execute built-in functionality available from code libraries in your C# applications.
  • Develop if-elseif-else and foreach statements in your C# applications.
  • Develop, build, and run C# code using Visual Studio Code.
  • Perform System.Console I/O operations.

Modules in this learning path

Learn the operators and techniques required to evaluate and compare values in your decision statements.

Use code blocks with more confidence, understanding how they impact the visibility and accessibility of both higher and lower-level constructs in your code.

Learn how to add branching logic that matches one variable or expression against many possible values.

Use the for iteration statement to loop a pre-set number of times and control the iteration process.

Use the do-while and while statements to iterate as long as a Boolean expression evaluates to true.

Gain experience developing a console app that implements selection and iteration statements to achieve app specifications.

Demonstrate your ability to develop a console app that implements selection and iteration statements to achieve app specifications.