---
id: 647e218f8acb466c97ccbee5
title: 'Iterate Through a Code Block Using the for Statement in C#'
challengeType: 19
dashedName: iterate-through-a-code-block-using-the-for-statement-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/csharp-for/" target="_blank">https://learn.microsoft.com/en-us/training/modules/csharp-for/</a> and complete all the tasks for the "Iterate Through a Code Block Using the for Statement 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--

Which of the following `for` statements is correct?

## --answers--

`for (int x = 20: x < 80: x++)`

---

`for (int j = 0; j == 80; j + 1)`

---

`for (int counter = 20; counter < 80; counter++)`

## --video-solution--

3
