using System; namespace test { public class Fibonacci { public static void Main() { long v1, v2, v3; v1 = 0; //1st number v2 = 1; //2nd number Console.WriteLine("The Fibonacci series are: "); Console.Write("{0}, {1}", v1, v2); for(int i= 3; i <= 50; i++) { v3 = v1 + v2; //Each number is the sum of the two previous numbers Console.Write(", {0}", v3); //Update the variables for the two previous numbers v1 = v2; v2 = v3; } Console.WriteLine("\n\n"); } } }