Generation

generate functionSun, 13 Nov 2022

write out fibonacci numbers to 1000

public void fibonacci() { var x = 0; var y = 1; int i = 0; while (i == 1000) { Console.WriteLine(x); var z = x + y; x = y; y = z; i++; } }

Questions about programming?Chat with your personal AI assistant