using System;
class Program
{
static void Main()
{
int n = 10;
int first = 0;
int second = 1;
Console.Write("Fibonacci Series: " + first + ", " + second);
for (int i = 2; i < n; i++)
{
int next = first + second;
Console.Write(", " + next);
first = second;
second = next;
}
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: