+ 5

1

What could be wrong with my Fibonacci series code, coz still it's not accepted as the right code. def printFibonacciNumbers(n): f1 = 0 f2 = 1 if (n < 1): return 0 print(f1) for x in range(1, n): print(f2) next = f1 + f2 f1 = f2 f2 = next # Driven code printFibonacciNumbers(5)

2nd Dec 2020, 5:55 PM
OPERE PETER
OPERE PETER - avatar
3 odpowiedzi
+ 5
Thank you all for the assistance,
2nd Dec 2020, 7:04 PM
OPERE PETER
OPERE PETER - avatar
2nd Dec 2020, 6:46 PM
JaScript
JaScript - avatar
+ 2
It's working correctly, what problem are you facing?
2nd Dec 2020, 6:44 PM
Yohanan