Python Forum

Full Version: Help needed on Fibonacci series
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Write a program that takes input of an integer N, followed by N more integers. For each integer, output the next fibonacci number.


Constraints:
program should run correctly for the first 60 Fibonacci Numbers.
output lines should not have any trailing or leading whitespaces