# Understanding Fibonacci Series C# – Expression & Code

For programmers and developers, Fibonacci series is a common term that everyone learns with basics. To recall, Fibonacci series C# is a series of numbers wherein every number is a sum of the previous two. Starting with 0 and 1, the sequence is as 0, 1, 1, 2, 3, 5, 8, and so on.

### General Expression and Program for Fibonacci Series C#

Written as a rule, the expression of Fibonacci series is Xn = Xn-1 + Xn-2. For clarification, below given is a program for the Fibonacci series C#.

```using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FibonaciDemo
{
class Program
{
static void Main(string[] args)
{
int i, count, f1 = 0, f2 = 1, f3 = 0;
Console.Write("Enter the Limit : ");
Console.WriteLine(f1);
Console.WriteLine(f2);
for (i = 0; i <= count; i++)
{
f3 = f1 + f2;
Console.WriteLine(f3);
f1 = f2;
f2 = f3;
}

}
}
}```

Did you face any difficulty understanding the Fibonacci series C#, its expression, and code?  Share your comments and concerns in the below comment section.

[yikes-mailchimp form=”1″]

Author Bio

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recommended for you
.Net Core

Python

Python

Health Care

.Net Core

Health Care

Health Care

Health Care

Connect With Us
Stay Connected

Latest Articles
Health Care

### Laboratory Evaporators Market Opportunities in Key Application Sectors by 2025

Laboratory Evaporators Market is driven by rising demand to attain the highest purity in drugs

## Free hub for guest blogging nerds and newbie writers

• Submit Guest Post