Console.WriteLine("{0}", next);
int n = Convert.ToInt32(Console.ReadLine()); Console.WriteLine(Fibonacci(n));public static void Fibonacci(int x) { int first = 1; int second = 2; int next = 3; for (int i = 3; i <= x; i++){ next = first + second; Console.WriteLine("{0}", next); first = second; second = next; } }