| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/T659/pythonprogram/master/fibonacci.py | [Back] [Original] |
# Program to display the Fibonacci sequence up to n-th term
nterms = int(input("How many terms? "))
# first two terms
n1, n2 = 0, 1
count = 0
# check if the number of terms is valid
if nterms
| Web Proxy Viewer | New URL | Original Page |