Find Fibonacci series up to n

    0

    0

    CrypticSai-08

    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()
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.