Back to Freecodecamp

Challenge Project - Develop Branching and Looping Structures in C#

curriculum/challenges/english/blocks/add-logic-to-c-sharp-console-applications/647e21598acb466c97ccbee1.md

latest1.5 KB
Original Source

--description--

This challenge will be partially completed on the Microsoft Learn platform. Follow these instructions to complete the challenge:

  1. Go to <a href="https://learn.microsoft.com/training/modules/challenge-project-develop-branching-looping-structures-c-sharp/" target="_blank" rel="noreferrer">https://learn.microsoft.com/training/modules/challenge-project-develop-branching-looping-structures-c-sharp/</a> and complete all the tasks for the "Challenge Project - Develop Branching and Looping Structures in C#" module. This is required to earn the "Add Logic to C# Console Applications" trophy on Microsoft Learn, and qualify for the certification exam.
  2. When you are finished, come back and correctly answer the question below.

--assignment--

Complete the <a href="https://learn.microsoft.com/training/modules/challenge-project-develop-branching-looping-structures-c-sharp/" target="_blank" rel="noreferrer">Develop Branching and Looping Structures in C#</a> challenge project on Microsoft Learn. Then, answer the question below.

--questions--

--text--

A developer needs to create an iteration statement. Under what condition is a while statement a better choice than a do statement?

--answers--

When the expression values evaluated by the iteration statement are unknown prior to the iteration code block.


When the expression values evaluated by the iteration statement are known prior to the iteration code block.


When the developer creates nested do or while loops.

--video-solution--

2