Question: I can find a Java version for my question, but not C#. My current attempt goes crazy when attempting to add them. I feel like there is a simple fix, but I'm struggling to think of it.

```
// See https://aka.ms/new-console-template for more information
int[] input = { 28, 2, 3, -3, -2, 1, 2, 35, -1, 0, 0, -1 };
for (int i = 0; i < input.Length; i++)
{
    int x = input[i];
    int y = input[i++];
    int output = x + y;
    Console.WriteLine(output);
}

```

Answer: 
Looking at Microsoft doc I found this [helpful information](https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/routing?view=aspnetcore-6.0#routing-with-urls-that-contain-dots)

Basically the method depends on the hosting model:

In your case **Blazor server**(as your tag says). to do it we need change program.cs as follow:

```
app.MapFallbackToPage("/{param?}", "/_Host");

```

In **blazor web assembly hosted in ASP.Net** we change it as follows:

```
app.MapFallbackToFile("/{param?}", "index.html");

```

explanation from Microsoft docs:

> 
> the server-side default route template assumes that if the last
> segment of a request URL contains a dot (.) that a file is requested.
> For example, the URL <https://localhost.com:5001/example/some.thing> is
> interpreted by the router as a request for a file named some.thing.
> Without additional configuration, an app returns a 404
> 
> 
> 

Last thing I discovered while searching, is that I was unable to change the route behavior when running web assembly standalone without dotnet host. If I were to publish it, it can be change depending on the host, like changing web.config, but I had no luck when in debugging mode.
If you use a previous version of .Net, or you have an old scaffolding, you need change this configuration in `Program.cs` like this:

```
...
app.UseEndpoints(endpoints =>
{
   ...
   endpoints.MapFallbackToPage("/{param?}", "/_Host");
});

```