---
id: 647e22058acb466c97ccbeec
title: 'Store and Iterate Through Sequences of Data Using Arrays and the foreach Statement in C#'
challengeType: 19
dashedName: store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-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-arrays/" target="_blank">https://learn.microsoft.com/en-us/training/modules/csharp-arrays/</a> and complete all the tasks for the "Store and Iterate Through Sequences of Data Using Arrays and the foreach Statement in C#" module. This is required to earn the "Create and Run Simple C# Console Applications" trophy.
1. When you are finished, come back and correctly answer the question below.

# --question--

## --text--

Which of the following foreach statements is syntactically correct?

## --answers--

`foreach (int value of values)`

---

`foreach (int value with values)`

---

`foreach (int value in values)`


## --video-solution--

3
