From 1f7fd72297e27380984bd226ff720074bd4ef88c Mon Sep 17 00:00:00 2001 From: Rahul Maurya <36106453+luciferarm@users.noreply.github.com> Date: Sun, 18 Oct 2020 17:14:19 +0530 Subject: [PATCH] User input --- Fibonacci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fibonacci b/Fibonacci index 2fad2b0..b959663 100644 --- a/Fibonacci +++ b/Fibonacci @@ -1,7 +1,7 @@ # Program to display the Fibonacci sequence up to n-th term where n is provided by the user # change this value for a different result -nterms = 10 +nterms = int(input()) # uncomment to take input from the user #nterms = int(input("How many terms? "))