> For the complete documentation index, see [llms.txt](https://eleven-fifty-academy.gitbook.io/dotnet-100-prework-gitbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eleven-fifty-academy.gitbook.io/dotnet-100-prework-gitbook/part-3-c-fundamentals/9.0-loops/9.0b-challenge-answers.md).

# 9.0b: Challenge Answers

## Bronze

Print the numbers 500 through 525 using a for loop:

```csharp
class Program
{
    static void Main(string[] args)
    {
        for (int i = 500; i <= 525; i++)
        {
            Console.WriteLine(i);
        }
    }
}
```

## Silver

```csharp
for (int i = 0; i <= 100; i += 5)
{
    Console.WriteLine(i);
}
```

## Gold

```csharp
for (int i = 1; i <= 100; i++)
{
    if (i % 15 == 0)
    {
        Console.WriteLine("FizzBuzz");
    }
    else if (i % 3 == 0)
    {
        Console.WriteLine("Fizz");
    }
    else if (i % 5 == 0)
    {
        Console.WriteLine("Buzz");            
    }
    else
    {
        Console.WriteLine(i);
    }
}
```

[Next](/dotnet-100-prework-gitbook/part-3-c-fundamentals/10.0-classes-and-objects.md) we will cover Classes and Objects


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eleven-fifty-academy.gitbook.io/dotnet-100-prework-gitbook/part-3-c-fundamentals/9.0-loops/9.0b-challenge-answers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
