using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace fibonacci
{
public class Program
public static void Main()
int i, count, f1 = 0, f2 = 1, f3 = 0;
Console.Write("Enter the Limit : ");
count = int.Parse(Console.ReadLine());
Console.WriteLine(f1);
Console.WriteLine(f2);
while(count>1)
f3 = f1 + f2;
Console.WriteLine(f3);
f1 = f2;
f2 = f3;
count--;
}