num = int(input("Enter the Number:"))
      n1, n2 = 0, 1
      print("Fibonacci Series:", n1, n2, end=",")
      for i in range(2, num):
          n3 = n1 + n2
          n1 = n2
          n2 = n3
          print(n3, end=" ")
      print()
      
      Python language logo

      Find Fibonacci series up to n

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.