# for Loop

*noun*

say it: **“FOR loop”** **/fɔːr luːp/**

A loop that keeps its start, condition and step together in one line, used for counting.

## What is **for Loop** in C#?

**for Loop** — A loop that keeps its setup, condition, and update together.

```csharp
class Schedule
{
    void MarkDays(bool[] scheduled)
    {
        for (int day = 0; day < scheduled.Length; day++)
        {
            scheduled[day] = true;
        }
    }
}
```

## In a sentence

- “A **for loop** prints the scores from index 0 to the last one.”

Level: Apprentice · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=2)

Updated: November 9, 2026

## In other subjects

- [for Loop in Java](https://www.ask-codey.com/glossary/for-loop-java)
- [for Loop in JavaScript](https://www.ask-codey.com/glossary/for-loop-javascript)
- [for Loop in PowerShell](https://www.ask-codey.com/glossary/for-loop-powershell)
- [for Loop in Python](https://www.ask-codey.com/glossary/for-loop)
- [for Loop in Unix](https://www.ask-codey.com/glossary/for-loop-unix)

Source: https://www.ask-codey.com/glossary/for-loop-c-sharp
