Fibonacci Numbers in Python on February 23, 2023 Get link Facebook X Pinterest Email Other Apps Fibonacci Numbers Code In Pyhtonn = int(input("enter nth num : "))a = 0b = 1ans = 0counter = 0 print("series :", end=" ")while (counter <= n ): print(ans, end=" ") counter += 1 a = b b = ans ans = a+b Comments
Comments
Post a Comment