# Loop Counter

A numeric variable used to track loop repetitions or positions.

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

**Loop Counter** — A numeric variable used to track loop repetitions or positions.

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

Level: Apprentice · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/apprentice)

Updated: September 27, 2026

## In other subjects

- [Loop Counter in Java](https://www.ask-codey.com/glossary/loop-counter)

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