From e4122d9cc52c66ac96aa179665feb81c15caaa0f Mon Sep 17 00:00:00 2001 From: dilsheen16 <56467165+dilsheen16@users.noreply.github.com> Date: Sat, 12 Oct 2019 14:50:17 +0530 Subject: [PATCH] Fibonacci Series --- Q21.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Q21.py diff --git a/Q21.py b/Q21.py new file mode 100644 index 0000000..56045e2 --- /dev/null +++ b/Q21.py @@ -0,0 +1,12 @@ +# fibonacci series +num1 = eval(input(' Enter number of terms ')) +FN = 0 ; SN = 1 +print(FN) +print(SN) +for i in range(2, num1): + TN = FN + SN + print(TN) + FN = SN + SN = TN + i += 1 +