---
id: 647e21598acb466c97ccbee1
title: 'Challenge Project - Develop Branching and Looping Structures in C#'
challengeType: 19
dashedName: challenge-project-develop-branching-and-looping-structures-in-c-sharp
---

# --description--

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

1. Go to <a href="https://learn.microsoft.com/en-us/training/modules/challenge-project-develop-branching-looping-structures-c-sharp/" target="_blank">https://learn.microsoft.com/en-us/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.
1. When you are finished, come back and correctly answer the question below.

# --question--

## --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
