Hello, I’m working on this task:

Fibonacci numbers are characterized by the fact that every number after the first two is the sum of the two preceding ones: 1, 1, 2, 3, 5, 8… To get the next number, you must sum the two previous values; in this case, 8 + 5 = 13; thus, 13 is the next number in the sequence. The sequence always begins with 1, 1.
Write a method called “GetNextFibonacci” that takes two integers representing two sequential Fibonacci numbers and returns the next Fibonacci number. The Main method should read an int value n from the console, and then, using GetNextFibonacci, output the first n Fibonacci numbers each delimited by a single space. For the purpose of this program, assume that n will always be greater than 2 and less than or equal to 25. Here’s an example:
>10
1 1 2 3 5 8 13 21 34 55

Here is my code:

``````
namespace Methods
{
class Fibonacci
{
static void Main(string[] args)
{
int first = 1;
Console.Write(\$"{first} ");
int second = 1;
Console.Write(\$"{second} ");
for (int i = 0; i < (n - 2); i++)
{
GetNextFibonacci(first, second);
}
}
static int GetNextFibonacci(int f1, int f2)
{
int next = f1 + f2;
Console.Write(\$"{next} ");
f1 = f2;
f2 = next;
return f1;
return f2;
}
}
}

``````