Skip to content

1️⃣1️⃣2️⃣3️⃣5️⃣8️⃣ 📍Fibonacci Series, .net framework 4.6 , C# 6.0

Notifications You must be signed in to change notification settings

VanHakobyan/Fibonacci-Series

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fibonacci-Series

.net framework 4.6 , C# 6.0

In mathematics, the Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and 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,\;13,\;21,\;34,\;55,\;89,\;144,\;\ldots \;

static IEnumerable<int> GetCalculatedFibonacciSequence()
{
  var current = 1;
  var b = 0;
  var next = 0;
  yield return next;
  yield return current;
  while (true)
  {
      next = current + b;
      yield return next;
      b = current;
      current = next;
  }
}

About

1️⃣1️⃣2️⃣3️⃣5️⃣8️⃣ 📍Fibonacci Series, .net framework 4.6 , C# 6.0

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages